title: What can cause jquery.data() disappearing?
body: <p>I'm having trouble with jQuery element.data() resetting mysteriously. I've checked that the data is stored ok to the element on a click event.</p>
  
  <p><a href="http://jsfiddle.net/marqs/Gb8CS/3/" rel="nofollow">Some simple tests to recreate the problem (with no success) here.</a> </p>
  
  <p>What happens after the data-storing is a series of actions, changing id:s for the data-fields, form submit, handling of the response, some rendering etc... In short, enough things that it's slow to find the problem. I've checked the $.cache-object which doesn't have the data I stored. The .removeData's in the code all target the submit-button in the form where I edit the input-fields.</p>
  
  <pre><code>$element.removeData('attribute'); 
  </code></pre>
  
  <p>Any ideas what things can cause the data to reset?</p>
  
  <p>jQuery.data source <a href="https://github.com/jquery/jquery/blob/master/src/data.js" rel="nofollow">here</a></p>