0
I’m having a problem, the html tag allows the user to select only one option from the list, however I need to select more than one select item, how to do this using only JS? I need to select which days of the week to hold an event, such as an alarm.
<select name="diasSemana">
<option value="1">Segunda</option>
<option value="2">Terça</option>
<option value="3">Quarta</option>
<option value="4">Quinta</option>
<option value="5">Sexta</option>
<option value="6">Sábado</option>
<option value="7">Domingo</option>
</select>
Vitor, you can select more than one element in select, without javascript, just declare the property Multiple within the select, you can read more here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select
– LeAndrade