I'm trying to change the value of the select field with option to disabled, but only when the user clicks the input field.
See the image to understand better:
Iwanttoexactlyleavethefirst"option" disabled only when the user clicks the field, I'm trying this, but it's not right, 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 thank him immensely.