Menu does not reset after reload

[ad_1]

I have a page with a larger list and a filter to choose a subset wich works well. The menu is defined with following code

<form class="ControlsJobs">
    <div class="custom-select">
        <select class="event-type-select">
          <option value="all"> All</option>
          <option value="apple">Apple</option>
          <option value="banana">Banana</option>
          <option value="pear">Pear</option>
        </select>
    </div>
</form>

My issue is that a menu selection (e.g. Banana) stays after a page reload although the reloaded page does show all entries. I wonder why a page reload does not refresh the menu so that the first entry is selected.
Using „selected“ makes no difference.
<option value="all" selected> All</option>

I can’t reproduce this issue using a simple plain HTML page for testing. Any idea?

  • Dieses Thema wurde geändert vor 20 Minuten von greatom.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer