title: How can i change dimension of picture with animate
body: <p>i have this function for 10 elements (images) and i need to click on each and grow abit then when i click on another to resize back to its original dimension and grow the last i've clicked.Heres some code:</p>
  
  <p><strong>EDIT:</strong> <a href="http://jsfiddle.net/MruMR/" rel="nofollow">http://jsfiddle.net/MruMR/</a></p>
  
  <pre><code>var Answers = new Array();
  var growing = true;
  
  $(Answers).click(function(e){
      if(growing)
          $(e.target).animate({width:'400px'}, 500, function(){
          });
      else
          $(e.target).animate({width:'360px'}, 500, function(){
          });
      growing=!growing;
  });
  
   for (var i = 0; i &lt; 10; i++) {
          var elemente = document.getElementById("simbol" + i);
          Answers.push(elemente);
      }
  </code></pre>