1
I’m trying to get the textContent of the combo at the time I click the Save button, so that it assembles a table with the input text and the selected combo values. Example of html:
<div class="modal-content" id="cadastro-tarefa">
<label class="" for="orderBy">Nome</label>
<input class="form-control" type="text" placeholder="">
<div class="form-group">
<label class="" for="orderBy">Tipo</label>
<select class="form-control cb" id="cb" name="meucombo">
<option value="" disabled selected>Selecione</option>
<option value="1">Pergunta e Resposta</option>
<option value="2">Multipla Escolha</option>
<option value="3">Grade de Multipla Escolha</option>
</select>
</div>
</div>
You just want to take the entered value and the selected value, that’s it?
– Artur Trapp
@Arthur I want to be able to display in a table the value of one of the 3 options, be it Question and Answer, Multiple Choice or Multiple Choice Grid, I want to be able to display this selection in the new table, I can only get the value that is 1,2 or 3. I want to display the texts. Is a listing
– Isa