News for hackers. Stuff that matters.
Re:Don't use the jQuery .data() method. Use .attr() instead. by underwater on Sunday December 18, 2011 @05:49PM (#3367755)
Your example isn't very clear. http://jsfiddle.net/4bd23/1/ shows that data read from the HTML attribute may be coerced into a number, while data values set from JavaScript are always returned as the same type.

I can see why they would do this. Having to parseInt all default values wouldn't be very jQuery-like.

There are no comments on this comment yet.