I agree (2) is the best approach. Thanks. -----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of godo Sent: Monday, August 06, 2007 11:33 PM To: jQuery (English) Subject: [jQuery] Re: how to disable a handler with a click
I see to possibilities here: 1) attach / detach alternate different event handlers (personaly I don't like this method) 2) wrap the sound handling into a function which will check a soundflag that can be set on or off, the wrapper execute the sound whether the flag is set or not. Hope this can help. Stefan On Aug 7, 5:23 am, "Mitchell Waite" <[EMAIL PROTECTED]> wrote: > I have a check box that I want to disable the sound in my app when its > checked and restore sounds when its unchecked. >