js获取单选框的值

js获取单选框的值

 var lx= $("input[name='lx']:checked").val();

   $("input[name='status']")[1].checked=true;   

根据当前对象  设为选中状态

 $(this).prop( "checked",true);
原文地址:https://www.cnblogs.com/qq376324789/p/9896579.html