Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 422
Scully Avatar asked Mar 07 '13 03:03

Scully


1 Answers

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

like image 124
Obmerk Kronen Avatar answered Oct 08 '22 07:10

Obmerk Kronen