title: jQuery: something is wrong with how this loop is being done
body: <pre><code>function appendRefToLinks(ref){
      alert("hi");
          $j('a').each(function(i){
              alert('hello');
              $j(this).attr('href',$j(this).attr('href') + "?ref=" + $j.cookie.get("tb_ref"));
          }); 
  }
  </code></pre>
  
  <p>I see the hi alert, but I have to links on my page, and I never see hello.... what am I doing wrong?</p>