[jQuery] Re: problem using jquery and prototype together

2008-12-12 Thread Amardeep
thanks .. this is very helpful indeed On Fri, Dec 12, 2008 at 2:10 PM, evan wrote: > > // here i selected two same ids using jquery and prototype > respectively. > > jQuery.noConflict(); > // for jqury selectors use jQuery instead of '$ like > jQuery(document).ready( function(){ >

[jQuery] Re: problem using jquery and prototype together

2008-12-12 Thread evan
// here i selected two same ids using jquery and prototype respectively. jQuery.noConflict(); // for jqury selectors use jQuery instead of '$ like jQuery(document).ready( function(){ jQuery("id").css('color:red'); ... } );' // then here you can write t

[jQuery] Re: problem using jquery and prototype together

2008-12-11 Thread Karl Rudd
If you take a look at the last part of http://docs.jquery.com/Using_jQuery_with_Other_Libraries you'll see a solution. Basically wrap your jQuery code in one of these two: (function($) { /* some code that uses $ */ })(jQuery) jQuery(function($) { /* some code that uses $. run on document.ready */