I am working on some form when i refresh the page the value which is present there is going blank if i do a right click and doing an inspect element the value is present there which is like this.
<textarea class="inputbox" tabindex="23" rows="5" name="keySkills" id="keySkills" style="width: 400px;" value="Configuration of controlling area (CO), Maintaining CO version and
Maintaining number ranges for planning and actual transactions in CO and
Defining primary and secondary Cost Element"></textarea>
But in console of google if i am running this code which is returning blank.
var value = document.getElementById('keySkills');
console.log(variable.value)
It is showing me undefined. but if i do
console.log(variable)
It is prinitng this
<textarea class="inputbox" tabindex="23" rows="5" name="keySkills" id="keySkills" style="width: 400px;" value="Configuration of controlling area (CO), Maintaining CO version and
Maintaining number ranges for planning and actual transactions in CO and
Defining primary and secondary Cost Element"></textarea>
Any idea how to fix this i want the value to remin in the text area itself