---
title: "What are the alternate ways to find next().next() in jquery"  
description: "What are the alternate ways to find next().next() in jquery"  
author: "Anonymous User"  
published: 2013-04-08  
updated: 2013-04-08  
canonical: https://www.mindstick.com/forum/731/what-are-the-alternate-ways-to-find-next-next-in-jquery  
category: "jquery"  
tags: ["jquery"]  
reading_time: 1 minute  

---

# What are the alternate ways to find next().next() in jquery

Hi All!\
I want to change the [css](https://www.mindstick.com/forum/514/background-gradient-ie7-css-problem) [attribute](https://www.mindstick.com/blog/221/attributes-reflection) of element which is just next to next of selector.\
I have used this syntax\
$('#hide').next().next().css('display', '[block](https://www.mindstick.com/forum/157599/explain-the-process-control-block-pcb-in-the-operating-system)');but i think there can be another better [approach](https://www.mindstick.com/interview/985/what-are-the-approaches-that-you-will-follow-for-making-a-program-very-efficient) can be use like find() or eq()\
<li [class](https://www.mindstick.com/blog/165/generic-class-in-c-sharp)="expandable"> <div class="hitarea collapsable-hitarea"></div> <div id="hide" class="hide"></div> <a href="#" class=""> <strong>Stitched</strong> </a>\
<ul [style](https://www.mindstick.com/articles/126300/apa-citation-style-get-to-know-about-it-for-your-next-assignment)="display: none;" id="hi"> <li> <a href="#"> Hand Block [Print](https://www.mindstick.com/blog/301752/types-of-3d-printing-technology) </a> </li> <li> <a href="#"> Designer </a> </li> <li class="last"> <a href="#"> [Screen](https://www.mindstick.com/forum/33644/loading-screen-during-ajax-call) Printed </a> </li> </ul></li>\
[Advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams) thanks!

## Replies

### Reply by Vijay Shukla

Hi!\
Try with .siblings selector:\
$('#hide').siblings("ul").css('display', 'block');\
Or by index:\
$('#hide').siblings("ul").eq(0).css('display', 'block');

### Reply by AVADHESH PATEL

Hi Ben!\
You can try as following line of code!\
$('#hide').nextAll().eq(1).css('display', 'block');\
nextAll() returns all the next elementseq(1) returns the second one amongst them.\
Hope it helpful you!


---

Original Source: https://www.mindstick.com/forum/731/what-are-the-alternate-ways-to-find-next-next-in-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
