4 ms·
Your example isn't very clear. http://jsfiddle.net/4bd23/1/ http://jsfiddle.net/4bd23/1/ shows that data read from the HTML attribute may be coerced into a numb
by underwater 15y ago
Your example isn't very clear. http://jsfiddle.net/4bd23/1/ 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.