easyUI样式之easyui-switchbutton

时间:2017-05-23 00:02:53   收藏:0   阅读:2243

 

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

 

效果图:

技术分享

 

 技术分享

 

 

以上!!!

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!