Definir valor Select2 do armazenamento local
$('#select').val(localStorage.getItem('selectDataFromLocalStorage'));
$('#select').select2()
hirohito
$('#select').val(localStorage.getItem('selectDataFromLocalStorage'));
$('#select').select2()