javascript - dependent cascading drop down box list in AngularJS or jquery? -


i trying implement dependent cascading drop down list in angularjs. coming fine for: if select country(say: country1), it's states(say: state1, state2, state3) displaying in second drop down box(it's fine).

but requirement that: after displaying above relevant states country, need display respective selected country given states in first drop down box(say if select either state1 or state2 or state3 of country1 country1 should displayed in first drop down box(since country1 having states), , other countries(country2, country3) should disabled or disappeared or not visible in first drop down box). created fiddle. please me how can implement eihter in jquery or angularjs ? in advance.

if write ng-diabled="cities" in first drop down box, working fine per requirement.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -