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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Platform: JavaScript |
Control: General |
Published Date: April 20, 2015 |
Last Revised Date: April 20, 2015
Tags: genral

JQuery.noConflict()

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.

https://api.jquery.com/jquery.noconflict/

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 ‘$’

HTML

 

HTML

Use an Immediately Invoked Function Expression

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

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

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

https://learn.jquery.com/using-jquery-core/avoid-conflicts-other-libraries/

ADD COMMENT
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.

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