How can I use jQuery to determine whether an element has a certain style set inline.
E.g, given the document
<style>
.MyClass { position: relative }
</style>
...
<div class="MyClass" id="div1" style="position: absolute"/>
<div class="MyClass" id="div2"/>
...
<script>
function f() {
assert($('#div1').SOMETHING('position') == 'absolute');
assert($('#div2').SOMETHING('position') == '');
}
</script>
If I use .css('position'), div2 is reported as being 'relative'. How can I determine which styles have actually been set inline?