title: asp:imagebutton, change image from javascript / jquery
body: <p>How can i change the image of an image button clientside, on click.</p>
  
  <p>I have tried this:</p>
  
  <pre><code>function changetoDownload(theId) {
     $(theId.id).delay(2000)
     .queue(function (next) { $(theId).attr("ImageURL", "Images/Apps/free.png"); next(); });
  }
  
  &lt;asp:ImageButton ID="ImageButton1" OnClick="Button7_Click" OnClientClick="changetoDownload(this.id);" ImageUrl="Images/download.gif" runat="server" /&gt;
  </code></pre>