I want to know if there is an adequate form of code to fill a select in html from the Firebase database, that is, get the values I have registered in firebase and display them in the html select ...
This is the select that I want to fill:
<select id="tipoatencion" onchange="ShowSelected();" class="seleccion" name="tipoatencion">
<option value="Seleccion">Selecciona un tipo de atención</option>
<option value="pu">Público</option>
<option value="ca">Caja</option>
<option value="otros">Otros servicios</option>
</select>
I hope you can help me, thank you very much everyone!