1
How do I get the selected value from a select and already print it? I have a simple form, when the user selects the value I want to assign to a php variable, because I will show the selected quantity and selected quantity x the selected ticket value.
<div class="col-md-4">
<div class="form-group">
<select id="cb_catinsumo" class="form-control select_ticket" name="teste">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</div>
</div>
Thanks for the help, there’s some link that shows this kind of request for me to have a basis on how to do this?
– Henrique
You can find several examples here: https://answall.com/search?q=requisi%C3%A7%C3%A3o+ajax or even reading in the jQuery documentation, or w3school https://www.w3schools.com/js_ajax_examples.asp
– Darlei Fernando Zillmer