jQuery Miscellaneous noConflict() method
Example
Use the noConflict() method to specify a new name for the jQuery variable:
var jq=$.noConflict();
Try it »
Definition and Usage
The noConflict() method releases jQuery's control of the $ variable.
This method can also be used to specify a new custom name for the jQuery variable.
**Tip:** This method is useful when other JavaScript libraries use $ for their functions.
Syntax
$.noConflict(
removeAll
)
| Parameters | Description |
|---|---|
| removeAll | Optional. A boolean value specifying whether to release jQuery's control of all jQuery variables (including "jQuery"). |
jQuery Miscellaneous Methods