TD - 单选框 - RadioButton
基本方法
Html - 默认选中
//checked="true" - 默认选中
<input dojoType="bootstrap.form.RadioButton" value="1" checked="true" dojoAttachPoint="chkAreaAndDeptType">
Js - 取值
值为true,即为选中
var chkDeptType = this.chkDeptType.attr("checked");
if (this.RbtnUserAll.checked == true){}
Js - 设置为选中
this.chkDeptType.attr("checked",true);
this.RbtnUserAll.attr("value",true);
模板
模板1:
Html - 相同的name,只会有一个被选中
<!-- 设备 -->
<input dojoType="bootstrap.form.RadioButton" value="1" checked="true" dojoAttachPoint="equipmentBox" name="associationTypes"> ${nls.EQUIPMENT}
<!-- 交通设施 -->
<input dojoType="bootstrap.form.RadioButton" value="0" dojoAttachPoint="facilityBox" name="associationTypes"> ${nls.TRAFFIC_FACILITY}
JS
this.connects.push(dojo.connect(this.equipmentBox, "onChange", this, this.onChange_btnStart));
onChange_btnStart:function(){
if(this.btnStart.checked){
this.edtUrl.attr("disabled", false);
this.btnSyncUser.attr("disabled", false);
}else{
this.edtUrl.attr("disabled", true);
this.btnSyncUser.attr("disabled", true);
}
},
最新文章
- Unknown lifecycle phase ";mvn";. You must specify a valid lifecycle phase or a goal in the format <;plugin-prefix>;:<;goal>; or <;plugin-group-id>;:<;plugin-artifact-id>;[:<;plugin-version>;]:<;goal>;
- Linux系统检查查看桌面环境
- SQL变量、Substring、charindex、case函数、去除重复
- 常用js字符串方法学习总结
- PHP 定界符使用
- PHP中的常用魔术方法
- ssh相关操作
- JQuery学习(2)之Ajax
- P、NP、NPC、NP-Hard问题
- 和小猪一起搞微信公众号开发—获取Access_token
- SVN-钩子
- 《Algorithms 4th Edition》读书笔记——3.1 符号表(Elementary Symbol Tables)-Ⅰ
- Codeforces 474D Flowers dp(水
- poj2449 Remmarguts&#39; Date【A*算法】
- 基于visual Studio2013解决C语言竞赛题之1029二元数组平均值
- 转载 C#文件上传
- javascript01
- CommonJS,AMD,RequireJS的区别
- Word中页眉、页码设置
- SWUST OJ(1102)