SalesForce: Using jQuery and Prototype
Somewhere in the Spring or Summer 09′ Updates of SalesForce, we started seeing Javascript errors within SalesForce’s Prototype code, such as:
element.className is undefined
element.hasClassName is undefined
element.dispatchEvent is undefined
Well, it turns out that jQuery and Prototype both overload some of the same things in the environment, so all you need to do is call this magical function:
jQuery.noConflict();
Poof! [...]