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
You can put that code into a function and call the function immediately.
For example:
function handleCheckbox() { if ($(this).attr('name') == 'foo') { // hide checkbox 'bar' } else { // show checkbox 'bar' } } $(function() { $('fieldset :checkbox').each(handleCheckbox).click(handleCheckbox); });