Using
bootstrap3-wysihtml5-bower 2013-11-22 (WYSIWYG Editor)
and
BootstrapValidator v0.5.2
Folks, bootstrapValidator has been upgraded to formValidation. If you are using the updated version of formValidation you can do this instead of adding a separate class to hide the text area:
$('#setpolicyform').formValidation({
framework: 'bootstrap',
excluded: [':disabled'], /* This will do the trick of validating for notEmpty*/
icon : {
valid : '',
invalid : '',
validating : 'glyphicon glyphicon-refresh'
},
fields: {
policyta: {
group: '.lnbrd',
validators: {
notEmpty: {
message: 'Textarea cannot be empty'
},
stringLength: {
max: 50,
message: 'Maximum 50 Characters Required'
}
}
}
}
});
$('.textarea').wysihtml5({
events: {
change: function () {
$('#setpolicyform').formValidation('revalidateField', 'policyta');
}
}
});
Thanks