How do I get the values of textboxe's along with innerHTML?
For example, if I have
<html>
<head>
</head>
<body>
<div id="getvalue">
<p><input type="text" name="username" id="username"></p>
</div>
</body>
</html>
I need the innerHTML of the particlular id="getvalue" along with the textbox value. I got the result if i use
var gotvalue=document.getElementBYId('getvalue').innerHTML;
I just got the result
"<p><input type="text" name="username" id="username"></p>"
Also, I need the textbox value along with the innerHTML. How could i do this?
Thanks in advance.