Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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'));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #local #storege #jquery
ADD COMMENT
Topic
Name
8+8 =