I need to get the HTML of the whole page, with the current values of all inputs in their value="...".
I've tried this:
document.getElementById("htmlId").innerHTML;
and this:
$('html').html();
but the both return the HTML page but without the input values.
I know that this looks like this other question, but it is not the same. I really need get the HTML with the value attributes.
$('#html').html();needs#to identify as ID..add html mark up to see the problemdocument.getElementById("html")meaning the element has ID html and not the root html. unless html is added we can only guess for now