21311 Posts in 5739 Topics by 2604 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1399 Views |
-
jQuery and Prototype

13 November 2009 at 9:13am
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!
-
Re: jQuery and Prototype

13 November 2009 at 9:22am
Sorry guys, I found this : http://docs.jquery.com/Using_jQuery_with_Other_Libraries#Overriding_the_.24-function
-
Re: jQuery and Prototype

13 November 2009 at 7:49pm
Just wrap your jQuery code as described here (Section: "Wrap everything in a document.ready"):
http://doc.silverstripe.org/doku.php?id=jqueryUsing that wrapper also resolves conflicts with other libs and you can still use the $-Sign for your jQuery code.
| 1399 Views | ||
|
Page:
1
|
Go to Top |


