Re:Don't use the jQuery .data() method. Use .attr() instead.
by stickfigure on Sunday December 18, 2011 @10:04PM
(#3368293)
The problem is that the way it works is not actually useful. When I have user input data of 1.400, I need this string preserved as 1.400. I can't have jQuery mangling the data just because (to it) the string happens to look like a float.
The root issue here is that the developer assumed how somethig worked, and didnt bother to learn how it actually worked.
I actually do have issues with data attribute for this exact reason, but that is no excuse for not looking up how it actually works.