I spent quite a bit of time trying to come up with this today to no avail.
I'm trying to select rows in a table having visible input elements but excluding the row that contains the input with focus.
My best guesses:
$('tr:has(input:visible)').not('tr:has(input:focus)')
$('tr:has(input:visible):not(:has(input:focus))')
Neither of these remove the row with the focused input. I read that :focus is a pseudo selector, is that part of my problem or is that a label for everything with a colon?
Is it possible to do this within the selector? I could also just loop through manually with a conditional, but I'd like to be able to avoid that.