What is the use of . noConflict() Method In Jquery ?


Do you ever think the scenario if you have to use other JavaScript Framework which has $ Symbol Identifier and JQuery function has also $ symbol Identifier in same html page? Does the JQuery function work?

No it does not work. There will be conflict with other F/w Function.

Then you can solve that conflict using . noConflict() method

Suppose if you want to create your own shortcut in JQuery then how can you create in JQuery?

Using .noConflict method you can create your own shortcut.

Advantage of .noConclict() method

1. You can avoid the conflict in JQuery and other JavaScript F/w

Noconflict2

2. You can create your own JQuery shortcut Identifier.

Noconflict1

Advertisement

One thought on “What is the use of . noConflict() Method In Jquery ?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.