[jQuery] Re: If radio button checked - do stuff

2009-12-30 Thread MorningZ
i think the problem is with your selector (and this is above and beyond the psuedo error $(form input[name=setting1]:radio).filter(':checked').click that will only bind the click event to checked radio buttons, which on page load wouldn't be the desired behaviour I've fallen for event

[jQuery] Re: If radio button checked - do stuff

2009-12-30 Thread Silver
Thanks guys ... I got it working now .. $(document).ready(function(){ /* S Q1 */ $('input[name=1_setting]:radio').click(function () { if ( $(this).val() == 'home_fy' ) { $.post(dq_process.php, { q: 1, r: 13300 } ); } else if ( $(this).val() == 'home_by' ) { $.post(dq_process.php, { q: 1, r: