title: Jquery: how to do a callback after attr?
body: <p>I want to change the img src at first then accomplish others. Something like this-</p>
  
  <pre><code>$('#bgImage').attr('src','images/'+bgImage, function() {
      alert('inside');
  });
  </code></pre>
  
  <p>how will i do that?</p>