title: on clicking the button how to show it has been selected and get the id of that button on form submit
body: <p>I want to create a list of buttons as a menu and the user must be able to select any one button among them. On selecting that button it must be visible that the button has been selected and then there will be another form submit button. On submitting form I want the id of the selected button. </p>
  
  <p>I am confused about what I have to use to have this functionality.</p>
  
  <p>I don't want a dropdown menu. I want the list of buttons from which the only one can be selected.</p>
  
  <p>Since I cant reveal my idea I am showing you the sample code type:</p>
  
  <pre><code>&lt;form action="formSubmit.php"&gt;
  
      &lt;input type="button" id="opt1" value="Option 1"&gt;&lt;br&gt;
      &lt;input type="button" id="opt2" value="Option 2"&gt;&lt;br&gt;
      &lt;input type="button" id="opt3" value="Option 3"&gt;&lt;br&gt;
      &lt;input type="button" id="opt4" value="Option 4"&gt;&lt;br&gt;
      &lt;input type="button" id="opt5" value="Option 5"&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;
  
      &lt;button type="Submit"&gt;Submit&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thanks in advance...</p>