What is the proper mark-up in jQuery (or JavaScript) to get the style attribute "position" for an element in the DOM?
Example:
HTML
<div id="Parent">
Parent Element
<ul class="child">
<li>
<p>inner child elements</p>
</li>
</ul>
</div>
CSS
#Parent {
position: relative;
}
.child {
position: absolute;
}
JavaScript:
$(function() {
// What to type here to get "style attribute position" of say #Parent?
})