and when I try to access the data using $element.data(...">
Geek Answers Handbook
Problem with jQuery data type conversion?
I have the following div <div data-item-id="0234"> and when I try to access the data using $element.data("itemId") , jQuery converts it to int, and now I get 234 instead "0234" . Is there a way to get the actual data "0234" ?