I have some issues when going back from my page. This is my view. There is a default value in "a" tag, if user clicks on that element list opens and user selects an option, after that I go to that options's page. If I click back, I get to the page with default value, but it should show chosen option's value from browser's cache?
<a href="#" class="custom-select-opener js-spec-select_name usrtype">{{ $user_types[$def_key] }}</a>
<div class="custom-select-scroll nano">
<div class="nano-content">
<ul class="custom-select-dropdown">
@foreach ($user_types as $k=>$v)
<li class='js-spec-select_li' data-id='{{ $k }}'>{{ $v }}</li>
@endforeach
</ul>
</div>
</div>
Thinking about using Session