I'm trying to make a custom calculator that will have a select box at the top of the page. The select box will have the options: Input, Output and Summary. Based upon what option is clicked, I would like the corresponding HTML form to show up. Right now my HTML looks something like this:
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<link rel="stylesheet" href="styler.css">
</head>
<body>
<form name = "Input">
<!-- All of the input boxes and a "Calculate" button -->
</form>
<form name = "Output">
<!-- All of the output boxes -->
</form>
<form name = "Summary">
<!-- A few more output boxes -->
</form>
(I have javascript below for the "calculate" button)
How do I make a select box with those three options that will display each of those forms when that box is selected (and only the selected boxes form)?
Also, I'm working in Webstorm and I would rather not deal with importing jquery. It's also worth noting that all three of the forms need to be in the same file because the calculate function pulls data from the inputs and returns it into the outputs.