Answers for "local storege in jquery"

0

local storege in jquery

// get the text
var text = $('#test').text();

// set the item in localStorage
localStorage.setItem('test', text);

// alert the value to check if we got it
alert(localStorage.getItem('test'));
Posted by: Guest on September-01-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language