javascript - How to populate a dropdown list based on values of the another list? -


i want implement search box same this, @ first, first dropdown list active once user selects option first dropbox, second dropdown box activated , list populated.

<s:select id="country" name="country" label="country" list="%{country} onchange="findcities(this.value)"/>  <s:select id="city" name="city" label="location" list=""/> 

jquery chained plugin serve purpose,

https://plugins.jquery.com/chained/

usage link - http://www.appelsiini.net/projects/chained

this plugin chain textboxes.


Comments

Popular posts from this blog

javascript - How to name a jQuery function to make a browser's back button work? -

python - Django-easy-pdf: xhtml2pdf reporting reportlab 2.2+ is required, but 3.0 installed -

collision detection - C++ library for mesh to mesh intersection: what is available? -