[wp-hackers] Re: wp_enqueue_script Question
Austin Matzko
if.website at gmail.com
Fri Mar 28 11:21:15 GMT 2008
On Fri, Mar 28, 2008 at 7:05 AM, Jeremy Visser <jeremy.visser at gmail.com> wrote:
> The only conflicts come from the fact that both Prototype and jQuery use
> '$'. If you instead opt to use the 'jQuery' object instead of '$',
> there's no need to assign it a special variable like 'joequery'. Just
> use jQuery for everything:
>
> jQuery(document).ready( function() {
> jQuery('#log').text( 'G\'day' );
> }
Or you can define $ as jQuery just within a limited namespace if you want to:
jQuery(function($) {
$('#log').text('howdy'); // here $ is jQuery
});
// here $ could be Prototype
More information about the wp-hackers
mailing list