formvalidation表单验证
官方文档:http://formvalidation.io var $formEntityProfileSearch = $("form[name=entityProfileSearch]"); var $formValidationEntityProfileSearch = $formEntityProfileSearch.data("formValidation"); //初始化表单验证 $formValidationEntityProfileSearch.revalidateField('companyFullName'); //支持单一字段重新验证 formValidationEntityProfileSearch.resetField(); //重置验证字段 一个表单多个提交按钮 formSubmit.off('success.form.fv.submit'); formSubmit.on('success.form.fv.submit', function(e) { var $form = $(e.target), // Form instance // Get the clicked button $button = $form.data('formValidation').getSubmitButton(); switch ($button.attr('name')