In this case you need to go up to the <tr>
then use .next()
, like this:
$(obj).closest('tr').next().find('.class');
Or if there may be rows in-between without the .class
inside, you can use .nextAll()
, like this:
$(obj).closest('tr').nextAll(':has(.class):first').find('.class');
Related Contents:
- jQuery how to find an element based on a data-attribute value?
- Why is my jQuery :not() selector not working in CSS?
- Access the css “:after” selector with jQuery [duplicate]
- jQuery selectors with variables
- Set select option ‘selected’, by value
- How can I get the ID of an element using jQuery?
- What is fastest children() or find() in jQuery?
- Select element by exact match of its content
- jQuery Selector: Id Ends With?
- use jQuery’s find() on JSON object
- Jquery bind double click and single click separately
- jquery data selector
- jQuery OR Selector?
- jQuery selector value escaping
- jquery find versus context selection
- How can I change CSS display none or block property using jQuery?
- Toggle Checkboxes on/off
- Set selected option of select box
- Get a list of checked checkboxes in a div using jQuery
- jQuery dot in ID selector? [duplicate]
- What is the fastest method for selecting descendant elements in jQuery?
- jQuery select all except first
- jQuery :contains() selector uppercase and lower case issue
- fullcalendar multiple cell select on mobile device?
- Selecting elements with a certain background color
- Does jQuery do any kind of caching of “selectors”?
- How can I detect if a selector returns null?
- jQuery Set Select Index
- How do I access style properties of pseudo-elements with jQuery? [duplicate]
- Difference between CSS selector and jQuery filter?
- How can I exclude $(this) from a jQuery selector?
- jQuery: select an element’s class and id at the same time?
- Efficient, concise way to find next matching sibling?
- Using jquery to get all checked checkboxes with a certain class name
- How can I get the corresponding table header (th) from a table cell (td)?
- jQuery :contains selector to search for multiple strings
- Multiple selector chaining in jQuery?
- How do I select an element with special characters in the ID?
- jQuery : eq() vs get()
- jQuery hasClass() – check for more than one class
- jQuery selector for the label of a checkbox
- jQuery scrollTop not working in Chrome but working in Firefox
- jQuery attribute selector for multiple values
- First word selector
- How to check if an element does NOT have a specific class?
- How do I get a jQuery selector’s expression as text?
- Find all elements based on ids using regex on jQuery selector
- :nth-of-type() in jQuery / Sizzle?
- Changing the child element’s CSS when the parent is hovered
- How to detect if a browser is Chrome using jQuery?