Dropdown form element not workng when form is submitted to that page itself

Dropdown form element not workng when form is submitted to that page itself


I have a page myform.php and it has a form targeted to that page itself like;

  1. <form action="myform.php" method="get">
  2.     <select name="type" id="type" data-native-menu="false">
  3.         <option value="all" selected="selected">Show all forms</option>
  4.         <option value="forma">Form A</option>
  5.         <option value="formb">Form B</option>
  6.         <option value="formf">Form F</option>
  7.         <option value="formx">Form X</option>
  8.     </select>
  9.     <button class="ui-btn" type="submit" name="submit" value="true">Submit</button>
  10. </form>

This works fine first time. On second time (after submission), I cant select value from dropdown. How can I fix this?