mike mimmis wrote:Thanks for reply . I already done the above code...
what i need is when i select country name from that list the states will automatically populate in second drop down menu which came from MySql database . i.e when i select india it should populate like bangaloor,chennai....etc...
rajarshi roy wrote:
mike mimmis wrote:Thanks for reply . I already done the above code...
If a page-refresh is not an issue,then you can call a javascript onchange function,that will submit the page.Based upon what you have selected in the previous drop down menu ,you can pass the parameter to another query,which will populate the next drop down menu.
ya i can use onchange() function how to pass this variable within single page i need that drop down menu. i.e
is there any way to convert javascript variable to java variable.. if any please provide me details....
Thanks & Regards,
Mike....
SCJP 6, next stop - OCPJWCD!
krunal prajapati wrote:Hello all friends,
I have done it upto two level with use of jsp,servlet and javascript (Not ajax),
like,
when you will select country, then its corresponding state will come, and when you will choose state then district name will come, but it become very complex, because of when page will reload ,previous value (country, state)also should be maintained,
Drove my Chevy to the levee but the levee was dry. A wrung this tiny ad and it was still dry.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|