I am attempting to create a toggle effect for my div using this jQuery script:
$(document).ready(function(){
$("button").click(function(){
$("div").animate({left:'250px'};
},
function() {
$("div").animate({left:'0px'};
},
});
My goal is simple - I want the div to move to the left by "250px" when the button is clicked, and then return to its original position at left: "0px" when the button is clicked again. I would appreciate any assistance or suggestions.