$(".panel").click(function(){
     $("> div.item",this).todosomethinghere();
})

在06-8-11,刘远志 <[EMAIL PROTECTED]> 写道:
i have some code like:
<div class="panel">
   <div></div>
   <div class="item"></div>
</div>
<div class="panel">
   <div></div>
   <div class="item"></div>
</div>

please tell me how to get a "item" when its outside "panel" clicked. the code is something like:
$(".panel").click(function(){
     // how to select the "item"?
})

thanks in advanced.

--
刘远志
QQ:2065254

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/





--
realazy.org
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to