jquery seletor和next()問題
請問各位前輩,html部分為
<input type=text id=i1>
<br>
<input type=text id=i2>
我再使用$('input:first').next('input') 怎麼都選不到 i2的輸入框
如果使用$('input:first').next()只會選到<br>那項
是我哪裡想法有錯嗎?
謝謝回答 [b]回復 [url=http://jsgears.com/redirect.php?goto=findpost&pid=1916&ptid=763]1#[/url] [i]shinryuken05[/i] [/b]
找到答案了!自問自答
next()只會制式回傳下一個 ,加上條件只是說要不要找到而已 [code]$('input:first').nextAll('input:first') [/code]
頁:
[1]