layui表单之单选框提交

   	<div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block" style="width:80%" >
            <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();

  

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-06
  • 2022-12-23
  • 2021-04-29
  • 2022-01-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-09
相关资源
相似解决方案