easyUI样式之easyui-switchbutton

简介: HTML文件 是否发送短信:  JS文件初始化:$("[switchbuttonName='sendTxt']").switchbutton("check"); 传递值var param = { sendTxt : $("[switchbuttonName='sendTxt']").

 

HTML文件

<tr>
     <th>是否发送短信:</th>
      <td>
       <input id="sendTxt" name="sendTxt" class="easyui-switchbutton" onText="是" offText="否" width="100px" checked="checked"/>
       </td>
</tr>

 

JS文件

初始化:
$("[switchbuttonName='sendTxt']").switchbutton("check");

 

传递值
var param = { sendTxt : $("[switchbuttonName='sendTxt']").switchbutton("options").checked, };

 

效果图:

 

 

 

 

以上!!!

相关文章
|
Web App开发 前端开发 索引
【easyui】关于easyui Datagrid一些样式记录
此篇文章主要记录在使用datagrid中常见的修改样式方式以及样式效果配图!!!!  一丶存在选中框的时候标题栏合并显示序号字段。       代码展示:                    1 onLoadSuccess: function (data) { 2 ...
2014 0

热门文章

最新文章