There is an asp menu that I'm using is auto inserting style = "width: 3px;" to my tds menu item, creating an unpleasant gap between my tabs. I am testing to remove this inline style using jquery instead of our developer customizing the menu just for this cosmetic defect.
below is a simple example:
<table border="1" cellspacing="0" cellpadding="0">
<tr>
<td style="width:3px;">hello world</td>
</tr>
</table>
in jquery, I can remove all tds with the style attribute by doing:
$('td').removeAttr('style');
So my question is how to target inline style containing only 3px?
Here's my live demo: http://jsfiddle.net/n9upF/
source
share