javascript - How to use $ for jQuery inside domready when prototype is using $ outside? -


i'm unable remove prototype jsf framework (richfaces 3.3.3). , if try noconflict , try take on $ breaks application framework because tightly coupled prototype.

so there way can this:

jquery(function() {     /*         code within domready function          allows me use $() within function         , not interfere $ being used prototype         outside?     */ }); 

yes, it's passed in first parameter ready handler, use:

jquery(function($) {    $("selector").dosomething(); }); //$ still prototype here 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -