Skip to main content

Bug Tracker

Side navigation

#11158 closed feature (invalid)

Opened January 11, 2012 12:29PM UTC

Closed January 11, 2012 03:33PM UTC

prop() could be used to get numeric values of css properties.

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

It would be quite useful to be able to retrieve the numeric value of a css property using the prop() function.


$(div).css("margin-left");  //returns "385px"
$(div).prop("margin-left");  //would be nice to return "385"
Attachments (0)
Change History (1)

Changed January 11, 2012 03:33PM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

And if there were DOM properties and CSS properties with the same name? This requires excessive levels of magic and do-what-I-thought-I-meant.