I used jQuery to create script for the drop down menus. But pages with forms use Prototype.js. So my jQuery script doesn't work.
Is there a way to make these two libraries work together?
thanks!
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I used jQuery to create script for the drop down menus. But pages with forms use Prototype.js. So my jQuery script doesn't work.
Is there a way to make these two libraries work together?
thanks!
Sorry guys, I found this : http://docs.jquery.com/Using_jQuery_with_Other_Libraries#Overriding_the_.24-function
Just wrap your jQuery code as described here (Section: "Wrap everything in a document.ready"):
http://doc.silverstripe.org/doku.php?id=jquery
Using that wrapper also resolves conflicts with other libs and you can still use the $-Sign for your jQuery code.