Geeks With Blogs
marocanu2001 technicle blog December 2009 Entries
jQuery date picker avoiding Prototype conflicts : dollars on the table!
So if you are in my situation, where you have a project using prototype and you want to use the jQuery date picker, you will notice that in certain situations, depending where your javascript is defined, you pickers won't work. The problem is the jQuery and Prototype $. You need to redefine the jQuery $ with anoter literal, like $j. So try this: <script type="text/javascript" charset="utf-8"> var $j = jQuery.noConflict(); $j(function() { $j('.date-pick') .datePicker({ createButton: false }) ......

Posted On Friday, December 18, 2009 5:18 AM

Copyright © marocanu2001 | Powered by: