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

  Modified On Nov-29-2017 07:30:42 PM

Leave Comment