Here\'s a little jQuery function that does what I want when a checkbox is clicked, but I have a basic gap in my knowledge:
How to register this so that it deals with ch
like this?
$(function() { $('fieldset input:checkbox').click(function() { if ($(this).attr('name') == 'foo') { // hide checkbox 'bar' } else { // show checkbox 'bar' } }).filter(":checked").click(); })
After seeing another answer i don't think the above is what you want. +1 to the other guy.
:-)