I’m writing some code to make some sections visible/invisible on my page using the code below (it does the job!). My problem is that while it does what I hope it to do, once I click on one of the buttons, it remains “checked” (though the visibility will continue to toggle). Any thoughts as to how to fix this would be appreciated.
This part of your script is changing the visibility of the divs on the page. You seem to be mixing up visibility and display. Display can be “in-line”, but visibility can only be “visible” or “hidden”. I have re-written your script below to illustrate the point.
[HIGHLIGHT=“”]
<!doctype HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
<html>
The problem is caused by the radio buttons you are using on your page all having diffferent names. Radio buttons are used as a group and should all be named the same. If you use a single name then only one will remain selected as you click across the group.