I have the following doubt, I have a modal, where I enter a city, so I need to have my select 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>