I am currently using a bunch of text input fields and I want to change it to DIV, but most of my JS functions use document.getElementById("inputField1").value when the value of the input field is set like this:
<input contenteditable="false" id="inputField1" type="text" size="12" style="background:#09F;color:#FFF;text-align:center" value="Hello World!"/>
This will return only Hello World! if I have to display the value in alert
How do I get the meaning of text between them if I were using a div?
For example, <div id="inField001">Hello World</div>
Thanks!
source share