Search code examples
jqueryshowslideeasing

Jquery show and slide returns error


i'm using jquery 1.8.2 and when i do:

$(function(){
$(element).show('slide', {direction: 'right'},1000);
});

it returns this error:

Error: TypeError: p.easing[this.easing] is not a function
File sorgente: http://localhost/js/jquery.js
Line: 2

what's happening?


Solution

  • You need to include jQuery UI for the special easing functions

    TypeError: p.easing[this.easing] is not a function