apply the dom value in tag code example Example: js html tag valu var value = document.getElementById("theInput").innerHTML;