(029)jquery_表单选择器checked
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html> <head> <title>form_checked.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 :checked").attr("disabled",true); }); </script> </head> <body> <h3>将处于选中状态的元素设为不可用</h3> <form id="frmTest" action="#"> <input id="Radio1" type="radio" checked="checked" /> <label id="Label1" for="Radio1">苹果</label><br /> <input id="Radio2" type="radio" /> <label id="Label2" for="Radio2">桔子</label><br /> <input id="Checkbox1" type="checkbox" checked="checked" /> <label id="Label3" for="Checkbox1">荔枝</label><br /> <input id="Checkbox2" type="checkbox" /> <label id="Label4" for="Checkbox2">葡萄</label><br /> <input id="Checkbox3" type="checkbox" checked="checked" /> <label id="Label5" for="Checkbox3">香蕉</label><br /> </form> </body> </html>
***万事万物都有裂痕,那是光照进来的地方***

浙公网安备 33010602011771号