I want an event trigger to call an AJAX function on a radio button element when it changes as a result of another button being selected.

Using ONCHANGE has no effect. It triggers the event when that button is selected, but nothing happens when it is unselected as a result of another button being selected.

I'm doing something like this:

if (button1.checked) {do action1} else {do action2};

When I click on that button, action1 takes place, but when I click another button, either nothing happens or action1 takes place again (I can't tell which, I just know the state doesn't change).

As far as I can figure, being unselected by clicking on another button either does not create an ONCHANGE event for the button previously selected or it happens before its "checked" state changes so my function thinks it is still checked.

Can anyone help me with this?

Thanks,

--Kenoli