Click here to Skip to main content
15,886,810 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

i have 2 select tag-country,state and 1 textbox city in my html page which are populated on page load from mysql database now when i when ever i want to edit the record i have a link of edit in my datatable which selectes the record and now i want that it should select proper country state and city.

For Example:
I have Country As Follows-
1.India
2.USA

State As Follows-
1.
Country ID 1
State Punjab

2.
Country ID 1
State J&K

3.
Country ID 2
State NJ

onchange of country i fill the state select tag

but when i select a record from a datatable i am able to select country but not able to fire onchange event

I know this is a very common question but after searching a lot i am posting this question i am new to PHP i have done this in dot net
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900