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 Posts:
- Get element type with jQuery
- WordPress ajax function parameter value not being passed
- Add a class to posts in increments of 2
- Disable stored tags queries in admin page when posting a new post
- WordPress Insert not working with ajax
- Ajax Query returns zero
- What is the purpose of the word ‘self’?
- Understanding Python super() with __init__() methods [duplicate]
- JavaScript sleep/wait before continuing [duplicate]
- JSON parsing error syntax error unexpected end of input
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- What does “Could not find or load main class” mean?
- How do I link a JavaScript file to a HTML file?
- What does “Could not find or load main class” mean?
- What are data classes and how are they different from common classes?
- Is it possible to make abstract classes in Python?
- Expression must have class type
- What does [object Object] mean? (JavaScript)
- When should you use a class vs a struct in C++?
- Numpy ValueError: setting an array element with a sequence. This message may appear without the existing of a sequence?
- Using two CSS classes on one element
- jQuery $(this) keyword
- Why does my JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not?
- How do I resolve ClassNotFoundException?
- What is the difference between private and protected members of C++ classes?
- How to set time delay in javascript
- c++ “Incomplete type not allowed” error accessing class reference information (Circular dependency with forward declaration)
- Disable button in jQuery
- Why is enum class preferred over plain enum?
- jQuery $(this) keyword
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- Disable button in jQuery
- How to assign multiple classes to an HTML container?
- Creating a static class with no instances
- JavaScript error (Uncaught SyntaxError: Unexpected end of input)
- C++ [Error] no matching function for call to
- What does ‘super().__init__()’ mean in python 3.x?
- How to assign multiple classes to an HTML container?
- Why am I getting this redefinition of class error?
- How to wait 5 seconds with jQuery?
- Submit a form using jQuery
- How to Handle Button Click Events in jQuery?
- Are static class variables possible in Python?
- How to enable CORS in flask
- Single class has a Class Redefinition Error
- C++ Linked List Node with class
- (->) arrow operator and (.) dot operator , class pointer
- How can I get the ID of an element using jQuery?
- jQuery equivalent of JavaScript’s addEventListener method
- Should I use .done() and .fail() for new jQuery AJAX code instead of success and error
- Pass request headers in a jQuery AJAX GET call
- Does Python have “private” variables in classes?
- $.ajax – dataType
- what does jQuery data() function do
- How to show loading spinner in jQuery?
- Python: How do I make a subclass from a superclass?
- How can I get the ID of an element using jQuery?
- What is content-type and datatype in an AJAX request?
- jQuery Selector: Id Ends With?
- speedtest.net api
- jQuery dialog popup
- PHP Fatal error: Using $this when not in object context
- data.map is not a function
- How do you select a particular option in a SELECT element in jQuery?
- Java: Multiple class declarations in one file
- Set select option ‘selected’, by value
- Change Placeholder Text using jQuery
- Adding placeholder attribute using Jquery
- Separating class code into a header and cpp file
- AttributeError: ” object has no attribute ”
- jQuery Ajax error handling, show custom exception messages
- How to send multiple data fields via Ajax?
- Adding an onclick function to go to url in JavaScript?
- how to define -std=c++11 as default in g++
- Pointer to incomplete class type is not allowed
- Why am I getting this redefinition of class error?
- Python calling method in class
- what is the difference between `public class` and just `class`?
- Checking a Url in Jquery/Javascript
- Jquery change background color
- My javascript is returning this error: $.ajax is not a function
- Best way to store a key=>value array in JavaScript?
- Difference between ‘cls’ and ‘self’ in Python classes?
- jQuery if div contains this text, replace that part of the text
- Javascript Runtime error: $ is undefined
- Deleting array elements in JavaScript – delete vs splice
- Bootstrap – Uncaught TypeError: Cannot read property ‘fn’ of undefined
- no default constructor exists for class
- jQuery set checkbox checked
- JavaScript: filter() for Objects
- How can I open Java .class files in a human-readable way?
- What is different between $(document).on() and $(element).on()
- AttributeError: ‘datetime’ module has no attribute ‘strptime’
- JavaScript runtime error: ‘$’ is undefined
- When and why to ‘return false’ in JavaScript?
- How to use jQuery qTip?
- Installing jQuery?
- Email validation using jQuery
- How do you make a deep copy of an object?
- Order of $(document).load() and $(document).ready() when deferring loading js