1. 首页
  2. 数据库
  3. 其它
  4. jquery radio 操作代码

jquery radio 操作代码

上传者: 2020-12-13 05:48:15上传 PDF文件 23.31KB 热度 10次
//设置第二个为选中状态 //if(<%=rows[“sex”]%>==”2′′){$(‘:radio[name=sex]’).eq(1).attr(‘checked’,true);} //设计value=2的为选中状态 //if(<%=rows[“sex”].ToString() %>==’2′){$(“input[name=’sex’]”).attr(“checked”,’2′);} if(<%=rows[“sex”]%>==”2′′){$(“input[name=sex][value=2]”).attr(“checked”,true);} 今天办了件
下载地址
用户评论