I have to store the inner html of a table into a hidden input box. I am able to store it in a JavaScript variable but not been able to store it in the hidden input box.
Here is the code I have written so far:
in .JS file
d = document.getElementById('address').innerHTML;
document.getElementById('hid1').value = d;
in .php file
<input type="hidden" id="hid1" name="hid1"/>
Please help me with this...am really clueless on what to do