jQuery UI Datepicker and Prototype.js

jQuery UI Datepicker and Prototype.js

Hi, i have downloaded jQuery UI 1.8.6 and taken an existing datepicker demo (min-max.html), and updated it as follows:
  • Included prototype.js (version 1.4.0) before the jquery script import
  • Updated the inline javascript as follows -
        var $j = jQuery.noConflict();

        $j(function() {
            $j( "#datepicker" ).datepicker({ minDate: -20, maxDate: "+1M +10D" });
        });





Running this in Firefox 3.6.3 causes an infinite number of javascript errors (invalid array length) at line 464 in prototype.js.