mr-wuxiansheng

 

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

 

效果图:

 

 

 

 

以上!!!

分类:

技术点:

相关文章: