java - Depending on first drop list selection, second drop down list should contain related contents -
depending on first drop down list item selection, want second drop down list should contain related contents. how can in java? instance, let say, first drop down list contains name of countries, , second drop down list contains names of states. , if select particular country, "india", name first drop down list second list should show related states of country i.e states of "india". , both lists dynamic.
this more javascript java , struts 2.
there 2 options can map first drop down's values key , other dropdown's values related item.
then when first combobox's value selected can values form javascript map , set second dropdown.
other option send ajax request on first dropdown's selection , pupulate second dropdown results.
Comments
Post a Comment