- Create a web application.
- Download the jquery support script file downloaded and use it from the project or
can also use it directly from here.
- Create the Html as mentioned below.
- "ulCountry" shows you the list of country.
- "tblStates" shows the list of states on the basis of country selected.
- "tblSelection" will get populated when a state name is clicked from state list.
It removes the particaular state name from the "tblStates" and adds it to "tblSelection". For example I clicked "Delhi" in state list.
- Create 2 classes for country and state.
- Declare 2 list properties of that particular classes. Country consists of "India
& USA". States will have some states from India and USA which can be distinguieshed using "CountryID".
to us "Web Methods" for getting country list.
needs to be poplulated.
Finally this will make the whole process work.