jQuery Animation Toggle
问题 This is a pretty straight-forward problem. I basically have a div block on a page that, when clicked, grows in size, and when clicked again returns back to what it was. My problem is that it just doesn't seem to work at all. Plus, I'm sure there is a much cleaner way to toggle between two animation states than an if statement like this, but I'm not sure how exactly to go about doing that. $(document).ready(function(){ var toggle = 0; $(".login").click(function(){ if($toggle == 0){ $(this)