layui表单之单选框提交


   	<div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block" style="width:80%" id="danxuan">
            <input type="radio" name="state" value="N" title="N" <c:if test="${material.state == 'N'}"> checked </c:if>>
      	   <input type="radio" name="state" value="Y" title="Y" <c:if test="${material.state == 'Y' }"> checked </c:if>>
        </div>
    </div>

 

   	formData.field.state = $('#danxuan input[name="state"]:checked ').val();

  

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM