title: jQuery.data() returns 'undefined' when retrieving data from dynamic elements
body: <p>My case is very simple, I just tried to store data into an element which <code>appended</code> in the <code>DOM</code> dynamically. My problem is, whenever I tried to retrieve the data through the immediate <code>appended object</code>, the value is returning fine, but through the object returned from the <code>click</code> event through <code>on</code> function it is returning <code>undefined</code>. I searched about this earlier, but people in stackoverflow were just suggested about removing the camel casing etc. That did not help me out in my case. Any suggestions or fix will be more helpful. </p>
  
  <p><strong>My code:</strong></p>
  
  <pre><code>$(document).ready(function(){
  
      xElement = $('&lt;li class="test"&gt;click this (because this contains data)&lt;/li&gt;').appendTo('ul');
  
      jQuery.data(xElement,"val","value1");
  
      alert(jQuery.data(xElement,'val'));
  
      $(document).on('click','ul li',function(){ alert(jQuery.data($(this),'val')); });
       });
  </code></pre>
  
  <p><strong>A Fiddle :</strong> </p>
  
  <p><a href="http://jsfiddle.net/qaFwQ/2/" rel="nofollow">Here</a></p>