jQuery get attribute out of style

Viewed 46394

I need to extract something out of the "style" attribute: the "top" and "left" attribute

<div style="top: 250px; left: 250px;" id="1" class="window ui-draggable">

What's the best way of doing this with jQuery? Is there an easy way, or will I have to resort to string functions?

5 Answers
Related