I'm using this code to display several forms on my page based on the link chosen by the user:
<ul class="nav">
<li><a href="#" onclick="$('#more_info').toggle(); return false;">
More Information</a>
</li>
<li><a href="#" onclick="$('#road_test').toggle(); return false;">
Book a Road Test</a>
</li>
<li><a href="#" onclick="$('#quote').toggle(); return false;">
Request a Quote</a>
</li>
<li><a href="#" onclick="$('#offer').toggle(); return false;">
Make an Offer</a>
</li>
<li><a href="#" onclick="$('#contact').toggle(); return false;">
General Contact</a>
</li>
</ul>
The code works fine, the only issue I'm having with it is that if I select one form then select another one, the previously chosen form remains ie. if I select "More Information" then "Make an Offer", I'll get both forms instead of having just "Make an Offer". How do I fix this?