Hi,
I have a jQuery object upon which I am setting the 'top' value using the .css() method. The value is to Float accuracy:
- $('#example').css('top', 13.857759);
Setting the value works fine, and the result in the DOM is:
- <div id="example" style="top: 13.857759px;">...</div>
However, when I go to retrieve the value using the .css() method, the value is returned as an integer:
- alert($('#example').css('top')) // alerts "13px"
Is this an intentional quirk of jQuery, or considered to be a bug?