I am writing a jQuery HTML parser for some specially formatted HTML, and I need to request an inline style for the value.
Inside the code, I go through certain input fields and save this particular style in an array ...
First I use the code that I use to go through these input fields and capture the width. 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 fields
<input style="width:1.9500000000000002em;" maxlength="3" tabindex="1" class="inputBox" type="text">
Any help appreciated. Thanks!
source share