https://jsfiddle.net/gmz73oew/
I'm currently working on a project where I want the height of a div to grow upon clicking a button. The animation works smoothly by itself, but I'm facing challenges when attempting to trigger it with the button click event.
$(document).ready(function() {
$("#button1").click(function(){
$("#maBlock").animate({
height: "950px",
top: "0px",
}, 2000 );
});
}
Any help or insights are greatly appreciated!