Path : /home/kohli/www/assets/admin/demo/ |
Current File : /home/kohli/www/assets/admin/demo/demo-formvalidation.js |
$(function() { //Parsley Form Validation //While the JS is not usually required in Parsley, we will be modifying //the default classes so it plays well with Bootstrap $('#validate-form').parsley({ successClass: 'has-success', errorClass: 'has-error', errors: { classHandler: function(el) { return $(el).closest('.form-group'); }, errorsWrapper: '<ul class=\"help-block list-unstyled\"></ul>', errorElem: '<li></li>' } }); });