I have an update form, where is a select and you can choose the area if you want to edit, when choosing any, in my database update the value of the option.
These data are filled through js, they are not static inside the html.
In an html table where the data is displayed, when updating the area, it shows me the value 2, which corresponds to Auxitrol. And where I need to show the word.
I am filling the data in the table by means of a function in js. And this is where I say it will show the area.
var CellArea = document.createElement('td'); CellArea.innerHTML = activos[i].name_area;