I have a text box element whose value I am trying to access using document.getElementById(\"id-name\").value. I find that the call is returning a null instead o
document.getElementById(\"id-name\").value
It seems that you've omitted the value attribute in HTML markup.
Add it there as .