javascript - .click() jquery function not working. Any ideas? -
https://jsfiddle.net/gmz73oew/
so i'm trying make on click of button height of div grows. i've got animation working smoothly i'm having issues when try make happen via clicking button.
$(document).ready(function() { $("#button1").click(function(){ $("#mablock").animate({ height: "950px", top: "0px", }, 2000 ); }); }
help appreciated.
you need add bracket , semicolon end, close ones $(document).ready(function() {
opened:
$(document).ready(function () { $("#motherfucking-button").click(function () { $("#mablock").animate({ height: "950px", top: "0px", }, 2000); }); }); //here need ');'
Comments
Post a Comment