Hi, why my function doesn't work in chrome and opera, but works in ie and mozilla firefox?
$j=jQuery.noConflict();
$j(document).ready(function(){
alert('jquery');
});Hi, why my function doesn't work in chrome and opera, but works in ie and mozilla firefox?
$j=jQuery.noConflict();
$j(document).ready(function(){
alert('jquery');
});Try using the suggested no conflict wrapper method.
http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers
Example:
jQuery(document).ready( function($) {
// You can safely use $ here now, eg. $('selector').whatever();
alert('jquery');
} );This topic has been closed to new replies.