2
Hello!
I am returning an object through ajax and assigning the values to the respective fields.
Using as example the title field:
$('#txt_titulo').val(objeto_menu.titulo);
However, I noticed something when I opened the browser console.
<input type="text" id="txt_titulo" class="form-control input-sm titulo lower valid" name="titulo" tabindex="4" autocomplete="off" placeholder="Título">
Although the field is correctly filled with the value coming from the server, I did not find in the element o value="Menu".
So I should find something like:
<input type="text" id="txt_titulo" class="form-control input-sm titulo lower valid" name="titulo" tabindex="4" autocomplete="off" value="Menu">
I’m altering some things at the front end, and I’m having a certain problem because I need this value
.
Does anyone know why it’s not shown ?
This is correct, it is not displayed even on the console. Unless you have set the value attribute in your input. And you also don’t have to worry about it appearing or not pq every input has an attribute value and it’s la msm q vc n be seeing it on the console
– alan