2
I’m trying to change the value of the select with the option to "disabled" but only when the user clicks the input field.
See the image to understand better:
I want to exactly leave disabled the first "option" only when the user clicks on the field, I’m trying it, but not for sure, I’m starting to see Jquery Now.
<select id="" class="form-input" placeholder="Categoria: *">
<option value="categoria" id="#cat">Categoria: *</option>
<option value="buracos nas ruas">Buracos nas ruas</option>
<option value="esgoto a ceu aberto">Esgoto a céu aberto</option>
<option value="lixo em local proibido">Lixo em local proibido</option>
<option value="falta de iluminação">Falta de iluminação</option>
<option value="outros">Outros</option>
</select>
$('label select option').click(function(){
$('#cat').html('<option disabled >Categoria: *</option>');
});
If anyone can help me, I’d really appreciate it.