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 ');' 

https://jsfiddle.net/jofish999/aronp88s/


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -