Menu
function copytable(){
tabvalue=document.getElementById(‘tabvalue’);
var temp=escapeURIComponent(document.getElementById(‘tab’).innerHTML);
tabvalue.value=temp;
//alert(tabvalue.value);
}
I need to copy a table html code inside div tag ‘tab’. Then i am copying the value to a hidden input tabvalue and sending it to a jsp. The problem I am facing here is that,the table line is like this in html page,
<table border=”2″>
but when it is copied to the hidden value,it loses the double quotes,
<table border=2>
I need to pass this double quote too with the string and get it in my jsp for processing.How can i do this? Please help.