jQuery Mobile Question:

Download Job Interview Questions and Answers PDF

Explain jQuery.noConflict?

jQuery Mobile Interview Question
jQuery Mobile Interview Question

Answer:

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().

jQuery.noConflict();
// Use jQuery via jQuery(...)
jQuery(document).ready(function(){
jQuery("div").hide();
});

Download jQuery Mobile Interview Questions And Answers PDF

Previous QuestionNext Question
IS it possible to use our own specific character in the place of $ sign in jQuery?Can you please explain the difference between body onload() and document.ready() function?