PSD TO Joomla Templates Conversion - Joomla Expert

Joomla website Development - Joomla Solutions

Joomla Services and Joomla Tutorials

Joomla Services development and Tutorials - virginsoft
 

joomla services

You are here: Home Tutorials How to use jQuery in no conflict mode

How to use jQuery in no conflict mode

SHARE :
Digg
http%3A%2F%2Fvirginsoft.net%2Fjoomla-tutorials%2Fhow-to-use-jquery-in-no-conflict-mode.html
 
This will revert $ back to its original library. You'll still be able to use "jQuery" in the rest of your application.

Additionally, there's another option. If you want to make sure that jQuery won't conflict with another library - but you want the benefit of a short name, you could do something like this:
  
     var $j = jQuery.noConflict();
     
     // Use jQuery via $j(...)
     $j(document).ready(function(){
       $j("div").hide();
     });
     
     // Use Prototype with $(...), etc.
     $('someid').hide();


 

User Login



Technologies

joomla services, joomla tutorials,web services

Donate Here

Enter Amount:

Visitors Counter

Joomla services, Joomla tutorialsJoomla services, Joomla tutorialsJoomla services, Joomla tutorialsJoomla services, Joomla tutorialsJoomla services, Joomla tutorialsJoomla services, Joomla tutorialsJoomla services, Joomla tutorials
Joomla services, Joomla tutorialsToday1084
Joomla services, Joomla tutorialsTimes Viewed580448