1
I have the following question, I have a modal, where I enter a city, so I need my select to be reloaded showing this newly added option, without the page being updated:
Select:
<select id="idMunicipio" name="idMunicipio" class="form-control">
<?php foreach ($municipios as $municipio) : ?>
<option value="<?=$municipio->idMunicipio?>"><?=$municipio->municipio?></option>
<?php endforeach ?>
</select>