I have the following SELECT:
<select id="municipio" class="celda corto">
<option selected="true" disabled="disabled"><?= $rows['municipio'] ?></option>
<option>Veracruz</option>
<option>Boca del Rio</option>
</select>
What I am looking for is that it appears by default (it is visible before selecting anything) the option that is obtained from the database, but with this line:
<option selected="true" disabled="disabled"><?= $rows['municipio'] ?></option>
My event stops working:
$('#municipio').on('change', function() {
alert('Prueba');
});
How can I solve it?