Home > DeveloperSection > Beginner > JQuery noConflict method

JQuery noConflict method

JQuery JQuery 
0 Comment(s)
 4459  View(s)
Rate this:

JQuery noConflict method

In JQuery generally ($) dollar sign is an indication of using JQuery function but jQuery give us functionality to rename ($) dollar sign instead of other user define variable name. By using noConflict () method, user can define own variable name. In this article I am trying to show you, how we can use noConflict method in JQuery as shown below:

Syntax: var xyz=$.noConflict ();


    <title>JQuery noConflict method</title>


    <script type="text/javascript" src="jquery.min.js">     </script>

    <script type="text/javascript">

        var userdefine = $.noConflict();//creating user define varaible

        userdefine(document).ready(function() {

        userdefine("label").append("JQuery dollar($)sign has changed from user define variable name('userdefine'        });





        JQuery noConfilct method</h2>






JQuery noConflict method


Don't want to miss updates? Please click the below button!

Follow MindStick