title: jQuery - Change href attr
body: <p>I trying to change <code>href</code> via jQuery, but I don't know why it's not working... </p>
  
  <pre><code>$(document).ready(function () {
    var oldurl = $('`http://google.com`');
    var newurl = $('`http://yahoo.com`');
  
    $('a[href="' + oldurl + '"]').attr('href', newurl);
  
    // it's not working too...
    //$('a[href="http://google.com"]').attr('href', 'http://yahoo.com');
  
    // it's not working too...
    //$('.mylink').attr('href', newurl);
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/vpM2U/3/" rel="nofollow">JSFiddle</a></p>