EasyUI表格验证,输入框必须填写:
<input type="text" id="name" class="easyui-validatebox" required="true"/>
<input type="text" id="age" class="easyui-validatebox" required="true"/>
需要取消表格验证时:
$('#name,#age').validatebox({
required: false;
});
EasyUI表格验证,输入框必须填写:
<input type="text" id="name" class="easyui-validatebox" required="true"/>
<input type="text" id="age" class="easyui-validatebox" required="true"/>
需要取消表格验证时:
$('#name,#age').validatebox({
required: false;
});