We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to render the components on using JQuery in the noConflict mode?

Platform: jQuery |
Control: General
Tags: genral


JQuery by default, uses $ as an alias for JQuery. Many JavaScript libraries use $ as a function or variable name. This may cause conflicts. To avoid this, use JQuery.noConflict() immediately after JQuery is loaded onto the page and before you use JQuery. You can also refer to the following link to know more about the JQuery.noConflict method.


Ways to use Syncfusion JS components while using ‘noConflict()’

The following suggested methods or approaches are provided by JQuery. The same is applicable for using the Syncfusion EJ components.

Create an alias for ‘$’


    <!--Contains the necessary theme for our components-->
    <link href="default-theme/ej.widgets.all.min.css" rel="stylesheet" />
    <!--dependency script files-->
    <script src="scripts/jquery-1.10.2.min.js"></script>
    <script src="scripts/jquery.easing.1.3.js"></script>
    <script src="scripts/jquery.globalize.js"></script>
    <!--contains the necessary scripts to render all the web components-->
    <script src="scripts/ej.web.all.min.js"></script>
        //release the hold on the $ shortcut identifier.
        var $jq = jQuery.noConflict();



                    <div class="control">
                        Select a file to upload
                                <div class="posupload">
                                    <div id="UploadDefault"></div>
    <script type="text/javascript">
        //$jq is used instead of '$'
        $jq(function () {
            // here $jq is the alternative for '$'. So, we need to use this sign while rendering and while using EJ components
                saveUrl: "saveFiles.ashx",
                removeUrl: "removeFiles.ashx",

Use an Immediately Invoked Function Expression

By using this approach, you can continue to use $ sign for EJ components.

    <script type="text/javascript">
        (function ($) {
            // Here, we can render our components using '$'
                saveUrl: "saveFiles.ashx",
                removeUrl: "removeFiles.ashx",
                multipleFilesSelection: true

Use the Argument that is Passed to the jQuery( document ).ready() Function

    <script type="text/javascript">
        jQuery(function (jq) {
            // Here, we can render the components using '$' or with parameter specified
                saveUrl: "saveFiles.ashx",
                removeUrl: "removeFiles.ashx",
                multipleFilesSelection: true

You can also refer to the following JQuery link to know more about this.


You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile