[jQuery] Re: Checkboxes and radios

2007-10-27 Thread Feijó
wow!!! What a builtfull code :)) Worked perfectly Thanks a lot, Wizzud Hope I get that advanced in jquery soon []s Feijó On Oct 26, 9:04 pm, Wizzud [EMAIL PROTECTED] wrote: OK, so they're actually children of the grandparents (aunts/ uncles?)... var checkBoxes =

[jQuery] Re: Checkboxes and radios

2007-10-26 Thread Feijó
Here it is If any checkbox is clicked, it needs do enable the radio next to it. In the bottom I have 3 links to check it all, uncheck it all, or toggle. In those cases the radios need to respond as well. That's my last jquery attempt: $('.form-

[jQuery] Re: Checkboxes and radios

2007-10-26 Thread Wizzud
And the radio buttons would be where? On Oct 26, 11:35 am, Feijó [EMAIL PROTECTED] wrote: Here it is If any checkbox is clicked, it needs do enable the radio next to it. In the bottom I have 3 links to check it all, uncheck it all, or toggle. In those cases the radios need to respond

[jQuery] Re: Checkboxes and radios

2007-10-26 Thread Feijó
Ops, sorry I add this jquery to dynamicaly insert the radio $(document).ready(function() { $('.form-checkbox').parent().parent().prepend(' input type=radio name=radio class=radio disabled '); }); On Oct 26, 3:28 pm, Wizzud [EMAIL PROTECTED] wrote: And the radio buttons would be where?

[jQuery] Re: Checkboxes and radios

2007-10-26 Thread Wizzud
OK, so they're actually children of the grandparents (aunts/ uncles?)... var checkBoxes = $('.form-checkbox').click(function(e, triggered){ $(this).parent().siblings('input:radio')[0].disabled = triggered ? this.checked : !this.checked; }); $('#toggle').click(function(){

[jQuery] Re: Checkboxes and radios

2007-10-25 Thread Wizzud
Need a bit more information! If you don't show us some HTML it's a bit difficult to second guess the relationship between checkbox and radio. On Oct 25, 8:34 pm, Alessandro Feijó [EMAIL PROTECTED] wrote: I'm trying to control N checkboxes, when one is selected or unselected, I need to