How to save jquery generated modifications to HTML file?

How to save jquery generated modifications to HTML file?

Hello
I`m using some functions to manipulate contents of local HTML files
When modifications are done i would like to make them permanent by clicking
SAVE / SAVE AS / EXPORT button
How to save dynamically generated HTML elements into the opened file,
as well as export them to another one?