1jQuery(function($){ 2 $.validator.setDefaults({ 3 errorElement: "span", 4 errorClass: "help-block", 5 highlight: function (element, errorClass, validClass) { 6 $(element).closest('.form-group').addClass('has-error'); 7 }, 8 unhighlight: function (element, errorClass, validClass) { 9 $(element).closest('.form-group').removeClass('has-error'); 10 }, 11 errorPlacement: function (error, element) { 12 if (element.parent('.input-group').length || element.prop('type') === 'checkbox' || element.prop('type') === 'radio') { 13 error.insertAfter(element.parent()); 14 } else { 15 error.insertAfter(element); 16 } 17 } 18}); 19 });
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.