YouTip LogoYouTip

Misc Callbacks Disabled

# jQuery callbacks.disabled() Method [![Image 3: jQuery Misc Methods](#)jQuery Misc Methods](#) ## Example Determine if the callback list has been disabled. $(function(){// A simple function to be added to the callback list var foo = function(value){alert("foo:" + value); }; var callbacks = $.Callbacks(); // Add a function to the callback list callbacks.add(foo); // Fire the list with a parameter callbacks.fire("hello"); // Outputs "foo: hello" // Disable the callback list callbacks.disable(); // Test the disabled state of the list alert(callbacks.disabled()); // Outputs: true}) [Try it Β»](#) * * * ## Definition and Usage The callbacks.disabled() function is used to determine if the callback list has been disabled. * * * ## Syntax This method does not accept any parameters. callbacks.disabled() * * jQuery Misc Methods](#)
← Docker Install ApacheMisc Callbacks Add β†’