This is the part of the code for one of the radio buttons:
$("#new").click(function(){
if( $('#new').is(':checked') )
$.jGrowl("You already have this option selected!", life: 1500});
else
changeOption(1);
});
Now, I understand that the else
part will never run, because the radio button will be already checked on click event. What I'm wondering is, is there an event which would let me capture the state of the radio button (which is about to be clicked) and therefor determine if he is not yet clicked, and if so change the option to this newly selected one.