asp中radio 標簽在js中設置默認選中項


<tr>
<td class="tdleft">設置或取消置頂:</td>
<td class="tdright" colspan="3">
<input name="IsTop" type="radio" value="1" onclick="CanIstop(1)" />設置 &nbsp;
<input name="IsTop" type="radio" value="0" onclick="CanIstop(0)" />取消 </td>
</tr>

 

頁面加載時

  $("input[name='IsTop'][value='1']").prop('checked', true);//radio默認選中


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。