(025)jquery_表单选择器checkbox
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>form_checkbox.html</title> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <meta http-equiv="description" content="this is my page"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <!--<link rel="stylesheet" type="text/css" href="./styles.css">--> <style type="text/css"> </style> <script type="text/javascript" src="../js/jquery/jquery190.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#frmTest :checkbox").attr("disabled","true"); }); </script> </head> <body> <h3>将表单的全部复选框设为不可用</h3> <form id="frmTest" action="#"> <input type="button" value="Input Button" /><br /> <input id="Checkbox1" type="checkbox" /> <label for="Checkbox1"> 西红柿</label><br /> <input id="Checkbox2" type="checkbox" /> <label for="Checkbox2"> 茄子</label><br /> <input id="Checkbox3" type="checkbox" /> <label for="Checkbox3"> 黄瓜</label><br /> <button>Button</button><br /> </form> </body> </html>
***万事万物都有裂痕,那是光照进来的地方***

浙公网安备 33010602011771号