I have the following problem: The user will complete the zip code and will click on 'search zip'. A zip search will be done, and the data will be placed in the fields: public place, neighborhood, etc., automatically.
It turns out that I do not want the user to change this information that was generated automatically.
I already tried readonly
and did not succeed, because the fields already appear as inactive.
I wonder if there is a way to do this kind of treatment.
<!-- Text input-->
<div class="form-group">
<label class="col-md-2 control-label" for="logradouro">Logradouro</label>
<div class="col-md-7">
<input id="logradouro" name="logradouro" placeholder="" class="form-control input-md" required="required" type="text" readonly>
</div>
</div>
Thank you.