I want to do a very simple task. I want to have a drop box and display (in the same page) the user input as soon as the user makes his choice. There must be no button involved. I dunno how to pass the values of the forms w/o using a submit button.

Recommended Answers

All 4 Replies

there might be a way in javascript. like <select onchange="Jsmethod()">

there might be a way in javascript. like <select onchange="Jsmethod()">

I tried working on the onchange but the problem is what do I put in the Jsmethod since I don't know how to access the data in the dropbox. The "request.getParameter()" doesn't work.

can you put it in a form and just say form.submit when it changes?

can you put it in a form and just say form.submit when it changes?

Thanks for the suggestion. I found a JSP counterpart of that Javascript command. it's onchange=submit();

Thanks a lot. ^^

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.