title: jQuery .attr retrieving custom attribute returns undefined
body: <p>i have the following problem using jquery.</p>
  
  <p>I have sth like this</p>
  
  <pre><code>&lt;div id="yxz" value="1"&gt;
    &lt;span class="delete"&gt;&lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>now I have this fn but it only returns "undefined", it does however return the id, or class if I ask for this.</p>
  
  <pre><code>$(".delete").click(function(){
    alert($(this).parent("div").attr("value"));
  });
  </code></pre>
  
  <p>I used to get this value with the same attr stuff. Does this have sth to do with me using the jquery 1.6.1 now instead of 1.5.2.</p>
  
  <p>Thanks for your help.</p>