看板 [ Ajax ]
討論串[討論] 用JQuery去Wrap一個checkbox跟緊接的文字.
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 4→)留言4則,0人參與, 最新作者JYHuang (夏天到了,冷不起來了說)時間15年前 (2010/09/14 10:17), 編輯資訊
0
0
0
內容預覽:
今天繼續查,看到了一個用傳統JS的方法 " .nextSibling ". HTML:. <input type="checkbox"> Chkbox1. <input type="checkbox"> Chkbox2. <input type="checkbox"> Chkbox3. <input
(還有373個字)

推噓0(0推 0噓 2→)留言2則,0人參與, 最新作者JYHuang (夏天到了,冷不起來了說)時間15年前 (2010/09/13 14:33), 編輯資訊
0
0
0
內容預覽:
<input type="checkbox" name=".."> Text. <input type="radio" name=".."> Text. checkbox跟radio沒有相對應的dom結尾. 加上input的下一個node是text. JQuery對text node似乎還是無法很完
首頁
上一頁
1
下一頁
尾頁