I am writing a JQuery HTML parser for some particularly formatted HTML and I need to query an inline style for a value.
Within the code I am stepping through particular input fields and saving out this particular style to an array...
First here is the code I am using to step through these input fields and grab the widths. This works but does not return the correct width value (I want the EM value).
$('.inputBox',this).each(function(index)
{
widthArray[widthArray.length] = $(this).attr('width');
}
Here is a simplified example of one of the input boxes
<input style="width:1.9500000000000002em;" maxlength="3" tabindex="1" class="inputBox" type="text">
Any help appreciated. Thanks!