Help with jQuery validate and a Zip code restriction based on the 1st three digitss
问题 I am assuming I need a regular expression here? I have a zip code field and the zip codes must be in the city limits of Chicago. Luckily all the zip codes begin with 606. So I need to poll the input to make sure that the zip code entered is 5 digits and begin with the numbers 606: My input is basic enough: <label for="dzip"><span class="red">♥ </span>Zip:</label> <input name="attributes[address_zip]" id="dzip" type="text" size="30" class="required zip-code" /> And then my script for city was