You should be able to do this with just a template modification. I do this in a lot of my code by wrapping the stuff I want to show/hide in divs and using a couple of styles like:
Then I use some JavaScript code that checks the div's className property and swaps in the style. E.g.:
This function is tied to an onclick event on the page. E.g.:
Contributions back via JIRA always welcome.
[originally posted on jforum.net by monroe]