Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set select2 value from local storage

$('#select').val(localStorage.getItem('selectDataFromLocalStorage'));
$('#select').select2()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #local #storage
ADD COMMENT
Topic
Name
5+7 =