<div class="codetitle"> <span><a style="CURSOR: pointer" data="75222" class="copybut" id="copybut75222" onclick="doCopy('code75222')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code75222"> <br>// jquery物件轉js物件<br>$('#search ')[0].checked=true; <br>// js物件轉jquery物件<br>var obj = document.getElementById('search'); <br>alert($(obj).checked); <br> </div>