May be using ajax to dynamically populate cities might help ?

-Mandar

On Tuesday, October 23, 2012 1:17:55 AM UTC+5:30, apinho wrote:
>
> Hello,
>
> Having :
>
> <form>
>     Countries :
>     <select name="countries" id="countries">
>         <option>Portugal</option>
>         <option>Spain</option>
>     </select>
>     Cities
>     <select name="cities"  id="cities">
>          <option>Lisbon</option>
>          <option>Barcelona</option>
>          <option>Madrid</option>
>          <option>Porto</option>
>     </select>
>  </form>
>
>
> How can I get a form that dynamically limits 'cities' options, according 
> to the chosen country ?
>  
> I mean : If user chooses Spain, he should only have Barcelona/Madrid 
> available.
>
> I guess it envolves 'onchange' html attribute, and some jquery, but I 
> google up and got no straight answers.
>
> Thank you
>
>
>

-- 



Reply via email to