jQuery no conflict and WordPress

jQuery.noConflict();

(function($) {

$(document).ready(function() {
//code here that depends on the document being fully loaded
});

})(jQuery);

example:

// found in header

jQuery.noConflict();

(function($) {

$(document).ready(function() {

$(function() {
$(‘#gallery a’).lightBox();
}); });

})(jQuery);

//end of header

source: http://stackoverflow.com/questions/1391950/how-to-use-jquery-non-conflict-properly

Advertisements