the red validation class doesn't apply on jquery code example
Example: the red validation class doesn't apply on jquery
highlight: function(element) {
$(element).parent().addClass('has-error');
},
unhighlight: function(element) {
$(element).parent().removeClass('has-error');
},