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

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

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