Search
 
SCRIPT & CODE EXAMPLE
 

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'));
Comment

PREVIOUS NEXT
Code Example
Javascript :: react native cross out letter 
Javascript :: tcp listen node 
Javascript :: chai compare arrays 
Javascript :: Javascript form check to see if return or enter was pressed 
Javascript :: add new element useState array 
Javascript :: jshint esversion: 6 
Javascript :: how to select div js 
Javascript :: find largest number from an array in JavaScript 
Javascript :: Loop over all keys in the local storage 
Javascript :: jquery select self and siblings 
Javascript :: Not allowed to navigate top frame to data URL 
Javascript :: send a message using discord.js 
Javascript :: javascript immediately invoked function expression 
Javascript :: pass props in link next js 
Javascript :: angular stoppropagatio 
Javascript :: get params from route vuejs 
Javascript :: javascript random number generator 
Javascript :: how to open component as a dialog in angular 
Javascript :: remove char from string js 
Javascript :: how to customize js alert box 
Javascript :: Sort big numbers from an array in javascript 
Javascript :: largest number javascript 
Javascript :: split string into int array javascript 
Javascript :: bootstrap datepicker mindate 
Javascript :: change next js default port 
Javascript :: nodejs user input 
Javascript :: @input and @output in angular 
Javascript :: key value json javascript 
Javascript :: find highest and lowest number string javascript 
Javascript :: angular generate without spec 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =