Response title
This is preview!
(Note: although I mentioned Magento, this is NOT a Magento question, it's about jquery).
I have a form and I've used a jquery script to autocomplete address based on zip code. The problem is that Magento brings a state/region list which values are different than I got from ajax result (webservice). For example: the value returned for state is "SP" (Sao Paulo) and the value that should match in select is "508" instead of "SP". How to populate that select correctly?
See the select here (Magento generates it dinamically, from db):
I have no idea how to "associate" each option number with the possible results from ajax.
Any helps?
© 2013 jQuery Foundation
Sponsored by and others.