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.
I am confused about what I have to use to have this functionality.
I don't want a dropdown menu. I want the list of buttons from which the only one can be selected.
Since I cant reveal my idea I am showing you the sample code type:
<form action="formSubmit.php">
<input type="button" id="opt1" value="Option 1"><br>
<input type="button" id="opt2" value="Option 2"><br>
<input type="button" id="opt3" value="Option 3"><br>
<input type="button" id="opt4" value="Option 4"><br>
<input type="button" id="opt5" value="Option 5"><br><br><br>
<button type="Submit">Submit</button>
</form>
Thanks in advance...