D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
vitalityhealth
/
public_html
/
superadmin
/
js
/
examples
/
Filename :
examples.validation.js
back
Copy
(function(){'use strict';$("#form").validate({highlight:function(label){$(label).closest('.form-group').removeClass('has-success').addClass('has-error');},success:function(label){$(label).closest('.form-group').removeClass('has-error');label.remove();},errorPlacement:function(error,element){var placement=element.closest('.input-group');if(!placement.get(0)){placement=element;} if(error.text()!==''){placement.after(error);}}});var $summaryForm=$("#summary-form");$summaryForm.validate({errorContainer:$summaryForm.find('div.validation-message'),errorLabelContainer:$summaryForm.find('div.validation-message ul'),wrapper:"li"});$("#chk-radios-form, #selects-form").each(function(){$(this).validate({highlight:function(element){$(element).closest('.form-group').removeClass('has-success').addClass('has-error');},success:function(element){$(element).closest('.form-group').removeClass('has-error');},errorPlacement:function(error,element){var placement=$(element).parent();placement.append(error);}});});$('select[data-plugin-selectTwo]').on('change',function(){$(this).valid();});}).apply(this,[jQuery]);