Django/jquery: Address forms - dyamically adding state drop down list if country is United States?

Posted by User on Stack Overflow See other posts from Stack Overflow or by User
Published on 2010-06-06T19:37:29Z Indexed on 2010/06/06 19:42 UTC
Read the original article Hit count: 192

I have a django html form for address information. There is standard street, city, state/province, postal code, country fields. The country field is a drop down list. How can I make the state/province field a drop down list if the selected country is united states and a free form text box if the country is anything else?

I'd prefer not to have to do a round trip to the server so probably through jquery?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about dropdownlist