Click here to Skip to main content
14,865,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
This is for my POC/prototype project. I want to save the form data from HTML5 application on the click of a submit button(<button> tag). I want to save the data currently to my local pc in the xml format and do some testing and then implement the real project.

Pls tell me how can I handle the same by using javascript/Jquery?
Updated 9-Feb-21 5:43am

1 solution

I suppose you want local storage. This is a really good article:[^].
Of course, you can store your data in xml also, but I doubt, that this could be a good idea. JSON representation looks more adequate - aside from some really special cases.
But of course, you can manipulate xml on client side with javascript. See some examples here:
XML and JavaScript[^] or JQuery[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900