1// Validates enrol form 2$(document).ready(function() { 3 if ($('.form-validate').length) { 4 $('.form-validate').validate({ 5 errorClass: 'form__error', 6 errorElement: 'p', 7 errorPlacement: function(error, element) { 8 if (element.is('radio')) { 9 error.insertAfter(element.parent()); 10 } else if (element.is('select')) { 11 error.insertAfter(element.parent()); 12 } else { 13 error.insertAfter(element); 14 } 15 } 16 }); 17 } 18 19 // Validates form if valid 20 $('.form__button-submit').on('click', function() { 21 if ($('.form-validate').valid() === false) { 22 return false; 23 } 24 }); 25});
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.