jQuery UI Datepicker - Uncaught TypeError: Cannot read property 'msie' of undefined

17,208

not sure , but I think you will need to use the no conflict method http://api.jquery.com/jQuery.noConflict/

OR

change all your $ signs to jQUery on the scripts

OR

(function( $ ) {
  $.fn.myPlugin = function() {
    // Do your awesome plugin stuff here
  };
})( jQuery );

or some method combining all of the above .

you can also search this site for similar questions :

https://stackoverflow.com/search?q=jquery+conflict

Share:
17,208
Scully
Author by

Scully

please delete me

Updated on June 09, 2022

Comments

  • Scully
    Scully almost 2 years

    I've developed a website in WordPress and installed the Gravity Forms plugin (http://www.gravityforms.com/). I have added a book online form to a page, but the datepicker is returning the following error in the console when clicked:

    Uncaught TypeError: Cannot read property 'msie' of undefined

    http://ultimatepaintball.com.au/packages/book-online/

    Has anyone experienced this issue before? I read somewhere that it may be an issue with jQuery 1.9 and $.browser, but the issue persists even when I fall back to 1.8.3.

    Thanks.