Check out example codes for "js html tag valu". It will help you in understanding the concepts better.

Code Example 1

var value = document.getElementById("theInput").innerHTML;

Learn ReactJs, React Native from akashmittal.com