InterviewSolution
| 1. |
Explain Jquery.noconflict? |
|
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(); 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(); |
|