use onClick event handler for the checkbox and inside the handler check if checkbox.checked==true then call your checked handler else call unchecked handler
HTH ----- Original Message ----- From: "Ben Holt" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 6:13 PM Subject: [PHP] Re: checkboxes > Sounds like onChange to me... when you check it you change it, when you > uncheck it you change it. > > - Ben > > Boaz Yahav wrote: > > > does anyone know the HTML event that knows when a checkbox has been > > checked and unchecked? > > So far I'm using onChange but that is not exactly what I need. I need to > > run one JS function when a checkbox is checked and another when it is > > unchecked. > > > > NE1? > > > > > > berber > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]