[Javascript] IE radio buttons don't fire the onchange event

rich gray rich at richgray.com
Wed Aug 30 13:48:32 CDT 2006


Marcelo Wolfgang wrote:
> I've tried removing the div's but IE still doesn't respond to the
> first click on the radio input, only for the second one.
>
> if I change the onchange="updateTotal(this)" to
> onchange="alert(this)", it trace this = [object, also with
> onchange="alert(this.value)" it trace the radio value, so I think the
> this object I'm using is correct.
>
> But I can't still figure out why it isn't firing the event when it
> should, and only on the second click ( which is a lot weirder ).
>
have you tried using the onclick event instead of onchange?

hth
rich



More information about the Javascript mailing list