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