獲取的元素有關的元素時的onclick子元素我有這些類型的列表:的jQuery
<ul id="navmenu-v">
<li class="level1"><a id="56" class="s1">Accessories</a>
<ul class="level2">
<li><a id="232" class ='s2'>Apple</a></li>
<li><a id="231" class ='s2'>Mango</a></li>
<li><a id="154" class ='s2'>Orange</a></li>
</ul>
</li>
<li class="level1"><a id="63" class="s1">Componet</a>
<ul class="level2">
<li><a id="129" class ='s2'>Leave</a></li>
<li><a id="658" class ='s2'>Tree</a></li>
<li><a id="158" class ='s2'>Roof</a></li>
</ul>
</li>
</ul>
我怎樣才能獲得類S1如56和63的ID,當我點擊在班級S2?
謝謝你。
[你嘗試過什麼?](http://mattgemmell.com/2008/12/08/what-have-you-tried/) – bPratik 2012-03-26 09:03:40