首页 > 其他 > 详细

easyUI样式之easyui-switchbutton

时间:2017-05-23 00:02:53      阅读:2237      评论:0      收藏:0      [点我收藏+]

 

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!