how to select a data that corresponds to selected items data in html code example
Example: html form select
<!-- O segundo valor estará selecionado inicialmente -->
<select name="select">
<option value="valor1">Valor 1</option>
<option value="valor2" selected>Valor 2</option>
<option value="valor3">Valor 3</option>
</select>