Can anyone tell me how to validate a form field with a Minimium(2) characters required? Here is what I have below, thank you in advance for your help!
$().ready(function() { // validate signup form on keyup and submit $("#signupForm").validate({ rules: { firstname: "required", lastname: "required", url: { required: false, url: true }, businessname: "required", address: "required", city: "required", state: { required: true, digits: false }, zip: { required: true, minlength: 5, digits: true }, messages: { firstname: "Enter contact firstname", lastname: "Enter contact lastname", surl: "Enter a valide URL Ex: http://domain.com", businessname: "Enter your business name", address: "Enter address", city: "Enter City", state: "Enter State", zip: "Enter Zip" } });