js 设置radio默认选中
来源:互联网 发布:cdn 云计算 编辑:程序博客网 时间:2024/05/01 13:32
<p class="font"> <input type="radio" style="display:inline-block;width:21px" name="status" checked="checked" class="mg-lr10" id="open" value="1">启用 <input type="radio" style="display:inline-block;width:21px" name="status" class="mg-lr10" id="close" value="0">停用 </p>$(".font").find("input[name='status']").removeAttr("checked");if ('1' == result.status){ $("#open").attr("checked","checked");} else if ('0' == result.status){ $("#close").attr("checked","checked");}<pre name="code" class="html"><input type="radio" name="optionsRadiosinline" value="MIDDLE_VOCATIONAL" checked> <em class="slect-1">中职</em><input type="radio" name="optionsRadiosinline" value="HIGH_VOCATIONAL" > <em class="slect-1">高职</em>input type="radio" name="optionsRadiosinline" value="REGULAR_COLLEGE" > <em class="slect-1">本科</em>
if(level=='MIDDLE_VOCATIONAL'){ $("input[name='optionsRadiosinline']").eq(0).attr("checked","checked");}else if(level=='HIGH_VOCATIONAL'){ $("input[name='optionsRadiosinline']").eq(1).attr("checked","checked");}else if(level=='REGULAR_COLLEGE'){ $("input[name='optionsRadiosinline']").eq(2).attr("checked","checked");}
0 0
- js 设置radio默认选中
- js设置radio选中 【转】
- js如何设置radio选中
- MFC radio button 设置默认选中
- 如何设置RADIO控件默认选中
- MFC radio button 设置默认选中
- MFC radio button 设置默认选中 .
- MFC radio button 设置默认选中
- MFC radio button 设置默认选中
- MFC radio button 设置默认选中
- js 多个radio 默认选中
- jQuery设置radio默认选中状态及获取选中值
- radio默认选中
- 设置struts的html:radio默认为选中状态
- jQuery设置 select、radio、checkbox 默认选中的值
- struts2中<s:radio>标签设置默认选中项
- struts2中<s:radio>标签设置默认选中项
- jquery设置radio选中
- Android从源码分析handler.post(runnable),view.post(runnable),runOnUiThread(runnable)执行时机
- Android应用如何开机自启动、自启动失败原因
- Windows下架设自己的DNS服务器
- 秒懂inner join, left join, right join, full join 的区别!!
- Material design 学习笔记
- js 设置radio默认选中
- java中String.split()的常用方法
- Android事件分发、拦截与处理的理解
- 利用Java反射机制创建对象,Spring管理Bean原理 例子。
- mysql远程登录并设置密码
- 数据库索引
- Spring学习-AOP
- 简介mybatis一对多的collection
- 找不到 Class BASE64Decoder 的解决办法