easyUI样式之easyui-switchbutton
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, };
效果图:
以上!!!
版权声明:本文为mr-wuxiansheng原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。