3
I have an HTML code that contains the following information:
<select name="QtdAcomodacaoD" id="QtdAdomodacaoDuplo" class="form-control" style="width:130px" onchange="soma()">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
And I’m trying to get the values with Jquery that way:
var QtdAcomodacaoD = $("#QtdAcomodacaoDuplo").val();
But when I give an Alert, Undefined appears.