jquery easyUI checkbox復選項獲取並傳后台
先上效果圖
再上代碼:
<div> <input type="checkbox" name="qx" value="1" />用戶管理 <input type="checkbox" name="qx" value="2" />業務模板定制管理<br /> <input type="checkbox" name="qx" value="3" />部門管理 <input type="checkbox" name="qx" value="4" />業務短信人工群發<br /> <input type="checkbox" name="qx" value="5" />業務申請 <input type="checkbox" name="qx" value="6" />業務取消 </div> var qx = $("input[name='qx']:checked").map(function () { return $(this).val(); }).get().join('#');
后台接收代碼:
context.Request["qx"]