How can we fill a drop down list to cascade in jqg

2019-09-14 19:35发布

问题:

How can we fill a drop down list to cascade in jqgrid??? example

I have a drop down list of countries and a drop down list of cities. How can to Select a country in DropDownList Country Fill Only the cities in the City dropDownlist

回答1:

Look at the answer and another one. I think it's what you need.



回答2:

use the countries' dropdown change() event to capture the event of changing a country.
then, initialize your cities' dropdown to whatever is appropriate.