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
- Single class has a Class Redefinition Error
- Checking a Url in Jquery/Javascript
- How can I display a tooltip message on hover using jQuery?
- jQuery creating objects [duplicate]
- Could not find or load main class with a Jar File
- How do I make script load after jquery?
- WordPress AJAX File Upload – FrontEnd
- Sort posts by Date (DESC) and by Title (ASC)
- Add custom shortcode button to Editor
- Display admin_notice error message form jQuery event
- Fulltext search in posts sorted by relevancy
- Querystring data gets truncated
- wp_enqueue_script and wp_register_script in theme not working
- wp_localize_script, variable is not defined in jquery
- Retrieve and display data from custom db table in admin area?
- How to modify the query to exclude posts by slug?
- How to load a jQuery script last?
- If No Search Results, Show Posts from Alternate Search Query
- Query All users that has post
- Loop – how to get previous/next post for first/last post?
- add_image_size and iPad Retina Display (high pixel density)
- How to show link to next posts in single.php
- Get image of latest post from taxonomies/categories
- WP_Query search posts by custom post type and custom taxonomy
- Search query – exact post title match
- wpdb::prepare() isn’t working
- How can I apply a meta query for a single custom post type in the main query?
- Undefined WP_Query::has_posts()?
- Modifying date filter on admin page for custom post type to link to custom field
- HTML5 Youtube wrapper works in jsfiddle but not in WP?
- How to access a query twice in different template files?
- Best way to include jQuery and fire with script at bottom of container
- Jquery not showing in homepage
- Query how many items to show in shortcode
- SmoothScroll not working in WordPress
- Custom Field Create Bulk via SQL Query
- How to pre populate a form field with a link of a current user’s author profile?
- Plugin will sort users by usermeta
- Limit filetype and wp media
- No results found from a $wpdb->get_results() query when trying to join more than one meta key query
- category pagination got broken suddenly
- How to retrieve attachments from child pages of a specific Page?
- Register jQuery – OOP WP
- querying a custom field
- Number of posts in the archive
- Check if CTP category taxonomy is set in shortcode
- Query custom post type based on post id and custom field value
- Superfish Menu Not Loading
- How to get comment images stored as serialized comment meta
- Convert UL to dropdown list not working
- Yoast primary category query modification
- problem with sql query
- JQuery Counter Limit not working for WP Comment Textarea
- Include one page/post into query which is already returning posts
- How to rearrange a pool of posts joined using two queries?
- How do I make Contact Form 7 pop up in thickbox? [closed]
- wpdb update multiple row?
- How To Include JavaScript Files Only In Single Posts?
- Determine image height within Fancybox
- How to use JQuery Marquee in WordPress?
- Custom query Custom-Post-Types creates error
- Query filter by value in meta_value array
- Hook into the Admin Dashboard and redirect users
- How to create algorithm for ordering posts in WordPress?
- Prevent versioning for .woff (font) files
- Ignore posts content in the posts queries for internal linking
- I am trying to load a Js Dynamic Audio Synth [closed]
- Custom post type, next and previous links by page title
- Why pagination is not working with tax_query param?
- Uncaught ReferenceError: jQuery is not defined
- OR condition not working
- Set SQL_BIG_SELECTS and MAX_JOIN_SIZE on a WP_Query
- Target a specific page/template in jQuery
- Let user select the number of posts shown per page jquery error
- Query by multiple custom taxonomies
- Multiple level category drop-down three levels is not working
- Modify the href attribute of tag dynamically in WordPress
- Sort Events by Venue Title – Sort Post set by related post ids
- how to get postmeta info based on multiple categories?
- Use $wpdb->get_results with filter based on array
- Page keeps refreshing with Ajax form
- Query custom post type by date field only working when two posts match the query
- WP Calendar Shortcode not working on my theme
- query by meta value then date and not empty meta value
- WordPress can only query up to 766
- display certain category on custom template page
- Hide input field when second input field is in focus
- Any way to insert text on page from a query results?
- Is it possible to append an external html file to my wordpress navigation?
- jscrollpane problem with my child theme
- I need a Pop up with description when i click an image
- SQL Query : how copy all tags of post into their post content in wordpress by sql query
- My website si Blocked by google and warns the visitors that is Unsafe site
- How to show posts of a specific category