skip to Main Content

Query / Json How can I save Data and Heading name in my local storage? – Jquery

$(document).ready(function () { $(":button").click(function () { var btn = $(":button").val(); if (btn == 'Favoritisieren') $(":button").css("background-color", "red").prop('value', 'Favoritisiert'); var obj = {"Hed.1" : $("h1")}; var myJSON = JSON.stringify(obj); localStorage.setItem('myJSON'); else $(":button").css("background-color","blue").prop('value','Favoritisieren'); }); }); hey, I would like to save the filename…

VIEW QUESTION
Back To Top
Search