1
$("document").ready(function(){
    $(this).css("position", "relative");
    $(this).click(function(){
        $("img").animate({top: 500}, 2000, "easeInQuad", function(alert("DONE!");){});
    });
 });

This code gives me error Uncaught TypeError: jQuery.easing[this.easing] is not a function. I don't what is going on.

irqize
  • 97
  • 1
  • 10

2 Answers2

2

I find two errors.

1) Change

$("document")

by

$(document)

2) The attribute is of jqueryui easeInQuad (https://jqueryui.com/easing/). Add the library jqueryui

juporag
  • 773
  • 3
  • 9
1

Syntax error. It must be

function() { alert("DONE!"); }
Rashad Ibrahimov
  • 3,279
  • 2
  • 18
  • 39