'Get Next Element that is Visible and Does Not Have Attribute
I'm an experienced developer with not so much experience in jQuery.
I have a table row (<tr>) element and I'd like to use jQuery to get the next table row that A) is visible, and B) does not have the attribute id='count-me-out'.
I think I could do this in a loop (although I have some question about checking visibility regardless of what attributes are being used to control visibility). But what what I'd really like is to pass a selector argument to $(myTr).next() that would implement this filter.
Is this possible?
Solution 1:[1]
You probably want:
$(el).next(':not(#count-me-out):visible')
Edit: This is not a valid answer. See comments.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
