[thelist] Why don't JQuery and Prototype play well together?

Jack Timmons jorachim at gmail.com
Wed Feb 3 12:46:01 CST 2010

On Wed, Feb 3, 2010 at 12:41 PM, Bruce Gilbert <webguync at gmail.com> wrote:
> Hi,
> I have a page I am working on with form fields. I added some JQuery to
> the fields so that they change color when you focus your mouse on
> them. This works great, but when I added a link to a prototype script,
> the JQuery script stopped working. I am just linking to the scripts as
> I would any JS. Anyone else had this problem before? I can post all
> the code if need to be, but it's a lot, so I was hoping not to. Also,
> I know you can do the focus change with CSS only w/o the JS, but this
> seems to only work in Firefox.
> --
> ::Bruce::
> --

While I don't use Prototype, I assume they both take over the $
variable to run their code. Therefor, Prototype is likely kicking
jQuery away form $.

-Jack Timmons
Twitter: @codeacula

More information about the thelist mailing list