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.
Unfortunately, activation email could not send to your email. Please try again.

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

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/

Article ID: Published Date: Last Revised Date: Platform: Control:
4557 04/20/2015 04/20/2015 JavaScript General
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.