1.
data-options=" required:true
2.
function validate(){
var validate = $("#txtpad").form('validate')
if (!validate) {
$.messager.alert("确认", '请正确填写表单!',"",function(){
$("#txtpad").find(".validatebox-invalid:first").focus();
});
return false
}
return true
}