Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is jQuery.noConflict?



What is jQuery.noConflict?..

Answer / chaitanya

As other client side libraries like MooTools, Prototype can be used with jQuery and they also use $() as their global function and to define variables. This situation creates conflict as $() is used by jQuery and other library as their global function. To overcome from such situations, jQuery has introduced jQuery.noConflict().

Hide Copy Code

jQuery.noConflict();

// Use jQuery via jQuery(...)

jQuery(document).ready(function(){

jQuery("div").hide();

});

You can also use your own specific character in the place of $ sign in jQuery.

Hide Copy Code

var $j = jQuery.noConflict();

// Use jQuery via jQuery(...)

$j(document).ready(function(){

$j("div").hide();

});

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

What is jquery selectors?

0 Answers  


What is the difference between find and children methods?

0 Answers  


How to validate email using jquery?

0 Answers  


Is it possible to use other client side libraries like MooTools, Prototype along with jQuery?

1 Answers  


What is jQuery connect?

0 Answers  


What are the features of jquery used in web applications?

0 Answers  


What is a use of jquery filter?

0 Answers  


What is the difference between calling stop(true,true) and finish method?

1 Answers  


How to check variable is empty or not in jquery?

0 Answers  


What is the use of delegate() method in jquery?

0 Answers  


Which is the latest version of jQuery library?

1 Answers  


How to control page titles in jquery mobile? : jquery mobile

0 Answers  


Categories