jQuery | noConflict() with Examples
Parameters: It does not accept any parameter.
Return Value: It does not return anything.
How conflict arises?
The noConflict() method releases the hold on the “$” shortcut identifier, so that other scripts can use it.
jQuery code which produces conflict:
Before clicking on the button-
After clicking on the button–
Here output is same before and after clicking the button and hence there is existence of conflict.
jQuery code to overcome such conflict using noConflict() function:
Before clicking the button-
After clicking the button-