Misc Callbacks Remove
# jQuery callbacks.remove() Method
[jQuery Misc Methods](#)
## Example
Use callbacks.remove() to remove a callback from the callback list
$(function(){// Simple test function var foo = function(value){alert("foo:" + value); }; var callbacks = $.Callbacks(); // Add test function foo to the list callbacks.add(foo); // Fire all callbacks with parameter callbacks.fire("hello"); // Output "foo: hello" // Lock the callback list callbacks.remove(foo); // Test the state of the callback list callbacks.fire("world"); // No output, because there is no "foo" callback function in the list})
[Try it Β»](#)
* * *
## Definition and Usage
The callbacks.remove() function is used to remove a callback or a collection of callbacks from the callback list.
This method returns a callback object to the callback list it is bound to.
* * *
## Syntax
callbacks.remove( callbacks )
| Parameter | Description |
| :--- | :--- |
| _callbacks_ | Function, Array type. A function or array of functions to remove from the callback list |
* * jQuery Misc Methods](#)
YouTip