D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
shubmkcj
/
designpitara.com
/
admin
/
js
/
demo
/
Filename :
validation-demo.js
back
Copy
//Form Validation Demo $('form#validate').validate({ rules: { textInput: { required: true }, textArea: { required: true } }, messages: { textArea: "<i class='fa fa-warning'></i> This field is required." }, highlight: function(element) { $(element).closest('.form-group').addClass('has-error'); }, unhighlight: function(element) { $(element).closest('.form-group').removeClass('has-error'); }, errorElement: 'span', errorClass: 'help-block', });