VALIDATE - check zip and return the city into another input
Hello
I use the Validation plugin (
http://bassistance.de/jquery-plugins/
jquery-plugin-validation/)
and do like this:
-
frmzip: {
required: true,
digits: true,
remote: zip.php,
},
I have two fields; zip and city, i validate zip with remote and it
checks against a list if the zip is valid, but i want it too:
check if the zip is valid
return true if it is valid AND return the city of the zip and paste it
in the city-input...
How to?
Of couse i have a databas/array/list with all zip and city's