1
I have the following HTML
<select class="cadastroDireitaInput cadastroSiteSexo" id="sexo" name="sexo">
<option value="">Selecione</option>
<option value="Feminino">Feminino</option>
<option value="Masculino">Masculino</option>
</select>
I have a JS that checks if the fields are filled in, for example, this line of code:
if($.trim($('#nomeFormUS').val())=='')alert('Informe seu nome!');
In this case, it checks whether an input is filled in.
Now, how do I check if any Options have been selected from that Select?
It’s the same thing, with jQuery.val().
– Bruno Augusto
I managed to solve the problem?
– Sergio