I am creating a small webpage which contains a drop down. So a user can select a value from it. This is in a form. When the user selects a value from it say value "A", based on that I want to do a database query say, Select * from Table where value = 'A'. And display the result on the same page, preferably without full page reload.
I can access the value of the dropdown selected in javascript method by calling a method onchange event and doing document.getElementById on it.
How should I pass the value in a variable on the same html page, so that I can send the value to the database?
Thanks for your replies in advance.