jQuery.data('itemname') not working but jQuery.attr('data-itemname') is working
<p>This is weird behavior but when I am trying to access some data attribute using jQuery data() function, it is returning me undefined but attr() is returning me the actual value. I know data works differently as it caches for the first time and then it retrieves from cache. I am using jQuery 1.4.2 and then tried looking with jQuery 1.7.1 and it did work. But I can't upgrade to 1.7.1 at the moment. Any thoughts on it?? </p>

<p>I will appreciate any kind of suggestion or help provided</p>
