[jQuery] Re: Hide/Show based on radio button selected

2009-09-15 Thread bjorsq
Hi, In the following example, all the radio controls have the name attribute set to "myradio", and the "#offices_checkboxes" part of the document is shown when the radio with id 'radioOne' is checked. Your example probably didn't work because of the syntax you used in your attribute selector (no

[jQuery] Re: Hide/Show based on radio button selected

2009-09-14 Thread Rick Faircloth
Just off the top of my head, but may work... $(document).ready(function() { $('#offices_checkboxes').hide(); $('input:radio[name=radioName]:checked').click(function() { $('#offices_checkboxes').show(); }); $('input:radio[name=radioName]:not(:checked)'.click(functi