Wednesday, April 9, 2014

The jQuery noConflict() Method

The noConflict() method releases the hold on the $ shortcut identifier, so that other scripts can use it.

Example:

<script type="text/javascript">
    var sa=jQuery.noConflict(); //define variable for conflict.replace $ symbol with your variable
    sa(document).ready(function() {

    });
</script>

sa = jQuery variable

No comments:

Post a Comment