I\'m trying to move the form up a few pixels and this doesn\'t work. I don\'t know why.
The function is being called when I submit (I have tested it with an alert()), bu
If you want it to work with .animate() try this:
$(document).ready(function () { $("#formulario").submit(function (event) { event.preventDefault(); $(this).css('position', 'relative') .animate({top: '-50px'}, 5000, function () { // Animation complete. }) }); });