I have an HTML select tag
<select class="filter">
<option values="1">One</option>
<option values="2">Two</option>
<option values="3">Three</option>
</select>
I would like to display the different options as an horizontal list of <a> hyperlinks for screen sizes above 481px and assign the same option values as in the select tag when the hyperlinks are clicked/selected and as a dropdown list for screen sizes of 480px and bellow.
I have seen examples online where a list of several <a> elements would be transformed into what looks like a dropdown list using jquery, but what it really did was taking all of these elements and stacking them over eachother and display the dropdown when clicked.