Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- /*
- * Validar parsley com bootstrap select
- */
- if($('.parsley-form-validate').length > 0)
- {
- $('.parsley-form-validate').parsley().on('field:validated', function()
- {
- $('.bootstrap-select .parsley-error').each(function( index ) {
- $('.bootstrap-select .bs-placeholder').addClass('parsley-error');
- });
- $('.bootstrap-select .parsley-success').each(function( index ) {
- $('.bootstrap-select .bs-placeholder').removeClass('parsley-error');
- });
- });
- }
- });
Add Comment
Please, Sign In to add comment