Getting the width of an html element in percent % with jQuery
<p>If i <code>alert</code> the element which has a css selector set to <code>width:100%</code> I get it's with in <code>px</code>, does exists some way to get it in <code>%</code> as set from css, I need it to fix some script with fluid layouts;</p>

<pre><code>// css
.my-element {
    width:100%;
}

// javascript
alert('width: '+$('.my-element').css('width'));
// this alerts "width: 1116px" instead of "width: 100%"
</code></pre>

<p>maybe something like this is always true?</p>

<pre><code>alert($('.my-element').outerWidth() == $('.my-element').parent().outerWidth());
</code></pre>
