i coded an select filter for my website:
<select class="event-type-select" id="selection" >
<button type="submit" class="btn btn-default"> filter </button>
before selecting anything in the "selection-window" on the website you read "category1". i guess thats default(?).
but if i selected a category (and that works: you can read in the "selection-window" e.g. category3) and then click on the "filter"-button the website refreshes but in the "selection-window" you again read "category1" and not the selected category e.g "category3". i guess the selection doesn't work right.
how can i solve this that when clicking the button you still read your selected category?
also i want to display the selected option on a different part of the website.
my current code for this:
var m = document.getElementById("selection").value;}
that as well doesn't work.
i hope you can understand what i mean, my english is pretty bad. sorry for that.