Jquery check array perform function
Posted
by mtwallet
on Stack Overflow
See other posts from Stack Overflow
or by mtwallet
Published on 2010-05-24T11:00:16Z
Indexed on
2010/05/24
11:21 UTC
Read the original article
Hit count: 227
Hello. I am creating a site that requires a very small postcode checker. I have approx 8 postcode prefix's, HX, HD, BD, LS etc in an array. I also have a simple input field and submit btn. When the user types in a postcode for example HX5 9DU I want Jquery to check the array, if there is match for the first 2/3 letters I want a div to fade in displaying a message.
How would I do this? Many thanks in advance.
© Stack Overflow or respective owner