How to resolve JavaScripts Conflict

Hi, what conflict you’re having in regards to jQuery and prototype? I’m guess that you’re talking

about the use of $(…). Here’s a good post on a blog:

http://disjointthoughts.com/2007/08/17/getting-thickbox-jquery-and-prototype-to-play-together-nicely/

Good luck,

-Conrad

Thanx 2 both of u for a quick reply. My problem is if Both libraries included then only first library works. i.e. if i include prototype.js then jQuery.js then only prototype.js works. on change select list and toggle box which used jQuery.js doesn't work.

Conrad Taylor wrote:

I will include jquery first, than include prototype:

<%= javascript_include_tag "jquery" %> <%= javascript_include_tag "prototype" %>

or You can write jQuery code by this way: