码迷,mamicode.com
首页 > 其他好文 > 详细

easyUI样式之easyui-switchbutton

时间:2017-05-23 00:25:44      阅读:329      评论:0      收藏:0      [点我收藏+]

标签:bsp   inpu   样式   UI   idt   技术分享   发送   效果   param   

 

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, };

 

效果图:

技术分享

 

 技术分享

 

 

以上!!!

easyUI样式之easyui-switchbutton

标签:bsp   inpu   样式   UI   idt   技术分享   发送   效果   param   

原文地址:http://www.cnblogs.com/mr-wuxiansheng/p/6891870.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!