1$(function() { 2 // Initialize form validation on the registration form. 3 // It has the name attribute "registration" 4 $("form[name='contact-form'], form[name='planner-form'], form[name='001-event-form'").validate({ 5 // Specify validation rules 6 rules: { 7 firstname: "required", 8 lastname: "required", 9 email: { 10 required: true, 11 // Specify that email should be validated 12 // by the built-in "email" rule 13 email: true 14 // Specify format for email 15 } 16 }, 17 // Specify validation error messages 18 messages: { 19 fullname: "Please enter your Full Name", 20 firstname: "Please enter your First Name", 21 lastname: "Please enter your Last Name", 22 email: "Please enter a valid email address" 23 }, 24 // Make sure the form is submitted to the destination defined 25 // in the "action" attribute of the form when valid 26 submitHandler: function(form) { 27 form.submit(); 28 } 29 }); 30 31 // Resize textarea on page load 32 var textarea = $('#message'); 33 autoResize(textarea); 34 35 // Resize textarea on input 36 textarea.on('input', function() { 37 autoResize($(this)); 38 }); 39 40 function autoResize(textarea) { 41 textarea.css('height', 'auto'); 42 textarea.css('height', textarea[0].scrollHeight + 'px'); 43 } 44});
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.