基本方法

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);

  }
},

最新文章

  1. Unknown lifecycle phase &quot;mvn&quot;. You must specify a valid lifecycle phase or a goal in the format &lt;plugin-prefix&gt;:&lt;goal&gt; or &lt;plugin-group-id&gt;:&lt;plugin-artifact-id&gt;[:&lt;plugin-version&gt;]:&lt;goal&gt;
  2. Linux系统检查查看桌面环境
  3. SQL变量、Substring、charindex、case函数、去除重复
  4. 常用js字符串方法学习总结
  5. PHP 定界符使用
  6. PHP中的常用魔术方法
  7. ssh相关操作
  8. JQuery学习(2)之Ajax
  9. P、NP、NPC、NP-Hard问题
  10. 和小猪一起搞微信公众号开发—获取Access_token
  11. SVN-钩子
  12. 《Algorithms 4th Edition》读书笔记——3.1 符号表(Elementary Symbol Tables)-Ⅰ
  13. Codeforces 474D Flowers dp(水
  14. poj2449 Remmarguts&#39; Date【A*算法】
  15. 基于visual Studio2013解决C语言竞赛题之1029二元数组平均值
  16. 转载 C#文件上传
  17. javascript01
  18. CommonJS,AMD,RequireJS的区别
  19. Word中页眉、页码设置
  20. SWUST OJ(1102)

热门文章

  1. 三维重建(一):colmap安装与使用
  2. 安卓自定义View实例-----跟随手指移动的鸟
  3. NIM游戏的Python实现
  4. 轻量级RPC设计与实现第五版(最终版)
  5. PC远程传文件到树莓派(PSCP详细版)
  6. gulp常用插件之yargs使用
  7. UVA12716-连续区间内反向寻因子法
  8. codechef Counting D-sets
  9. 咸鱼的ACM之路:DFS水题集
  10. ubuntu set up 7 - power