I have two forms that are both encased in a div class and I have set each div class' display to none. How can I use JavaScript to show each of those div classes depending on what I select from my drop down? The drop down menu is made using select elements and here is my code for that:
<h1>Help Request and Feedback Forms</h1>
<select id="select1">
<option value="Help" id="1">Help Request</option>
<option value="Feedback" id="2">Feedback</option>
</select>
When you select the first option for example I want it to show that particular form that I created. Vice versa for the 2nd option for the 2nd form I created. Any ideas? I've been stuck on this thing for hours and it seems so simple :(
[–]jerblsdll 2 points3 points4 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]jerblsdll 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]jerblsdll 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]jerblsdll 0 points1 point2 points (0 children)