Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
speaktorob
speaktorob's Profile
1
Posts
2
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
How can I retrieve a .css() value with Float accuracy?
[3Replies]
19-Nov-2010 08:24 AM
Forum:
Using jQuery
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?
«Prev
Next »
Moderate user : speaktorob
Forum