-1
how do I load this combobox filled in the edit form with the chosen value during registration?
<label for="tipo_lancamento">tipo de lancamento</lable>
<select name="tipo_lancamento">
<option></option>
<option value="receita">receita</option>
<option value="despesa">despesa</option>
</select><br/>
I can load the filled inputs through the following code, but this option does not work with the combobox
<label for="pessoa">Pessoa</label><br />
<input type="text" name="pessoa" id="pessoa" value="<?=$lancamento['pessoa'];?>" required />
You want to leave selected the value that comes from your select tag is this ?
– Ricardo Lucas
Hello Ricardo, I would have to leave selected value that was saved in the bank during registration, however as it is an edition form, I would have come to another option, if the user wanted to change, since I appreciate the feedback
– frdmarkes