$("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 trigger some function calls, now, how to know which > radio button is selected at this time? thanks. > > $("input:[EMAIL PROTECTED]").click(function() { > > });