$(‘.selector’).children()可以得到.selector所代表dom物件的下一層子物件,而不是所有的子物件。例如:
<div class=’level-one’>
<div class=’level-two’>
<div class=’level-three’>
<input type=’text’ name=’mytext_three’ value=’my text’ size=’20’/>
</div>
</div>
<input type=’text’ name=’mytext’ value=’my test’ size=’20’/>
</div>