Is it possible to get the html of the page with all modifications made by the user (see below)?
For example, if text has been entered into a textarea, or a checkbox has been chosen, that should be reflected in the html as well. My reason for wanting to do this is to take a "screenshot" of the user's page.
The answers below that are a variation of jQuery('html')
, do not reflect changes made by the user.
If you're wanting a screenshot, you should consider a tool such as html2canvas. Just pulling the HTML isn't going to get you the input fields.
Another SO thread along these lines.
Other answers will get you the HTML, specifically, but without the inputs' values
$('html').html();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With