Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Strange behaviour Jquery Re: Strange behaviour Jquery

#57767
apostrophe
Participant

Wordpress uses a couple of other javascript libraries as well as jQuery and they also use the $ sign. So you have a conflict going on.
I always use the google hosted version of jQuery thus:

Code:

But if you want to use the version bundled with WordPress you can use this line:

Code:

And as regards the conflict, change $ to ‘jQuery’ so you would have:

Code: