0
When you press the button to display the choices you will have to scroll through the elements to see what the value (choice) is in each one:
$('#check').on('click', function() {
var escolhas = '<b>As suas escolhas são:</b><br>';
$('select').each(function() {
escolhas += $(this).prop('id')+ ': ' +$(this).val()+ '<br>';
});
$('#present').html(escolhas);
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<select id="select1">
<option></option>
<option value="Maria">Maria</option>
<option value="Miguel">Miguel</option>
<option value="Sara">Sara</option>
<option value="Claudia">Claudia</option>
</select>
<select id="select2">
<option></option>
<option value="Maria">Maria</option>
<option value="Miguel">Miguel</option>
<option value="Sara">Sara</option>
<option value="Claudia">Claudia</option>
</select>
<select id="select3">
<option></option>
<option value="Maria">Maria</option>
<option value="Miguel">Miguel</option>
<option value="Sara">Sara</option>
<option value="Claudia">Claudia</option>
</select>
<br>
<button id="check">
Verificar Escolhas
</button>
<div id="present">
</div>
Example HERE
Use
document.getElementsByName("nameOfHTMLElement");
.– Lucas Fontes Gaspareto
didn’t work !
– hulckb
Can you explain better how you want to record, or what you mean by "record"? So I can also give you an answer that will help you with whatever you need.
– Sergio