<script type="text/javascript">
$(document).ready(function() {
var showText="Show";
var hideText="Hide";
$(".toggle").prev().append(' (<a href="#" class="toggleLink">'+hideText+'</a>)');
$('a.toggleLink').click(function() {
if ($(this).html()==showText) {
$(this).html(hideText);
}
else {
$(this).html(showText);
}
$(this).parent().next('.toggle').toggle('slow');
return false;
});
});
//-->
</script>
I wonder if it's possible to also call the hide event when someone clicks on a radio button (they answer a question and the fieldset hides like it would do with the Show/Hide link)