Dynamic select box from database values
Hi all,
I have 4 select boxes named state, district, tehsil, village. By default on form load the state is popluated with all the states in database. After selecting a state, the form is refreshed and the district select box is populated with districts of the selected state. Similiarly for tehsils and blocks. This is time and database query consuming. I need to retrieve all the districts, tehsils, etc in one nX4 matrix and use javascript to appropriately populate the respective select boxes on change of the other. Can anybody send me javascript code for that, may be for just 2 levels, state and district? I can insert the jsp code in that.
Prashant Kr,
MIS Consultant
|