Guest User

Untitled

a guest
Jan 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <li class="person-information hide" style="display: list-item; ">
  2. <!-- First Name -->
  3. <input type="text" class="person-name-first error" name="person-name-first">
  4. <!-- Last Name -->
  5. <input type="text" class="person-name-last" name="person-name-last">
  6. <!-- Age -->
  7. <select class="person-age valid" name="person-age">
  8. <option value="1">Infant/Toddler (1-3)</option>
  9. <option value="2">Child (4-17)</option>
  10. <option value="3">Adult (18+)</option>
  11. </select>
  12. </li>
  13.  
  14. $.validator.addMethod("fNameRequired", $.validator.methods.required, "First Name Required");
  15. $.validator.addMethod("fNameMinlength", $.validator.methods.minlength, $.format("First Name must have at least {0} characters"));
  16. $.validator.addClassRules("person-name-first", { fNameRequired: true, fNameMinlength: 2 });
Add Comment
Please, Sign In to add comment