I want to save part of my html code into json as a file then recap back the html codes for editing. Any idea how can i do it?
var html = $('#TextBoxesGroup')[0].outerHTML; var temp = {"html":html}; var obj = JSON.parse(temp); console.log(obj); // shows json object
You can use any server side language to make a json from obj.