Ustaw wartość SELECT2 z lokalnej pamięci
$('#select').val(localStorage.getItem('selectDataFromLocalStorage'));
$('#select').select2()
hirohito
$('#select').val(localStorage.getItem('selectDataFromLocalStorage'));
$('#select').select2()