title: How to get all form fields except hidden and submit button in a dropdown
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form class="myform" id="myform"&gt;
    First name:&lt;br&gt;
    &lt;input type="text" id="input_1" name="firstname" value="Mickey"&gt;
    &lt;br&gt;
    Last name:&lt;br&gt;
    &lt;input type="text" id="input_2 "name="lastname" value="Mouse"&gt;
    &lt;br&gt;&lt;br&gt;
    Agree:&lt;br&gt;
    &lt;input type="radio" id="input_3 "name="agree" value="Mouse"&gt;
    &lt;br&gt;&lt;br&gt;
    &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt; </code></pre>
  </div>
  </div>
  </p>
  
  <p>How can i get all form fields by name in a select/dropdown and return the id on selection?</p>