1
I have a dropdown list, which allows you to choose the year that will be used in the database search. I would like the user to select one of these dates, set a session variable with the value of the year, so it is possible to use this variable in future database searches.
<li class="dropdown" id="teste">
<a style="color:white;"href="#" class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-haspopup="true" aria-expanded="false">
2016 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#">2015</a></li>
<li><a href="#">2017</a></li>
</ul>
</li>
If possible you do not change page, but if it is mandatory it will not be, for me, preventing its use.
This dropdown is from bootstrap.
– mau humor