[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread Josh Nathanson
day, November 28, 2007 3:10 PM Subject: [jQuery] Re: how to know which radio button is checked? If you filter on :checked before binding the click, what happens when the unchecked radio is clicked?! On Nov 28, 2:50 pm, Tim <[EMAIL PROTECTED]> wrote: try this: $("input:[EMAIL PRO

[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread Wizzud
If you filter on :checked before binding the click, what happens when the unchecked radio is clicked?! On Nov 28, 2:50 pm, Tim <[EMAIL PROTECTED]> wrote: > try this: > > $("input:[EMAIL PROTECTED]:checked").click(function() { > > }); > > On Nov 28, 8:42 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTEC

[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread Wizzud
If you filter on :checked before binding the click, what happens when the unchecked radio is clicked?! On Nov 28, 3:33 pm, "KidsKilla .grin! wuz here" <[EMAIL PROTECTED]> wrote: > $("input:[EMAIL PROTECTED]:checked").click(function() { > > }); > or > $("input:[EMAIL PROTECTED]").filter(':check

[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread KidsKilla .grin! wuz here
$("input:[EMAIL PROTECTED]:checked").click(function() { }); or $("input:[EMAIL PROTECTED]").filter(':checked').click(function() { }); -- Максим Игоревич Гришаев, AstroStar.ru

[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread Tim
try this: $("input:[EMAIL PROTECTED]:checked").click(function() { }); On Nov 28, 8:42 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have two radio buttons, user can choose one of them, when it is > clicked, it will trigger some function calls, now, how to know which > radio button is

[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread [EMAIL PROTECTED]
jQuery 1.2.1: $("input:checked[type='radio'][name='rb_meas']"); On Nov 28, 2:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have two radio buttons, user can choose one of them, when it is > clicked, it will trigger some function calls, now, how to know which > radio button is selecte

[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread Josh Nathanson
If you want to get the checked value: $("input:[EMAIL PROTECTED]").click(function() { var checkedvalue = $(this).val(); }); -- Josh - Original Message - From: <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Wednesday, November 28, 2007 5:42 AM Subject: [jQuery] how to know which

[jQuery] Re: how to know which radio button is checked?

2007-11-28 Thread Wizzud
$("input:[EMAIL PROTECTED]").click(function() { if(this.checked){ // it's checked }else{ // it's not checked } }); On Nov 28, 1:42 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have two radio buttons, user can choose one of them, when it is > clicked, it will trig