Here is my Code.
I have several ComboBoxes. I need to get Value from selected in ComboBox and use value in different query. All data I do select from Oracle.
This is my first ComboBox and I need to use VALUE of this ComboBox's option in query of second ComboBox. I mean second ComboBox depends on first select.
How I can get "Value"? I tried to use
onchange="this.form.submit()" but it refreshes the page and loses my select. Maybe is it possible to do it with Ajax...
<tr> <div class="form-group" style="background-color:#f9f9f9;border:1px solid #ddd;border-radius:4px;padding:2px;"> <label>Something:</label><span style="color:#FF0000;">*</span></label> <select class="form-control" input-sm name="example" required> <OPTION VALUE="">Choose any</OPTION> <OPTION VALUE="first">first_name</OPTION> <OPTION VALUE="second">second_name</OPTION> </select> </div> </tr>