View Full Version : Check/uncheck HTML component


Rodie
10-27-2005, 05:06 PM
Hi everybody :waves:

I have input component in html like these:
<input type=radio ... />
<input type=checkbox ... />
I would like to catch the "change" event for each those component. For example, when the user checks a checkbox, a javascript function is called. Or when he unchecks it, the same javascript function is called.

Apparently, the attribute "onchange" does not solve my problem
<input type=radio onchange="alert('event...')"; />
Any one has an idea ??
Thanks a lot:cheer2:

Rodie
10-27-2005, 05:19 PM
oops... I just found a list of all the events that I tried.
"onclick" works !!

So problem solved :)
Thanks