Currently, I am working on a project involving html and javascript. My issue lies in displaying multiple options on the same webpage without switching pages. Essentially, I have a plot and a few buttons on one page, and when a user clicks on any of these buttons, I need to show 3 or 4 additional options without navigating to another page. Here is an excerpt of my code:
<form action="MyPage">
<button type="submit" value="More Options">
</form>
It currently redirects to another page. How can I achieve this desired functionality?