i have a 3rd party script and its setting a width and height on images and i for the life of me i cant figure out how its doing it. its probably from the database or a class but there are alot of them.
it looks something like this
<img src="..." width="30px" height="30px">
using jquery how i can change the values within height and width?
im guessing its something like
$("..[$width="]").replace(
here is the html of the element
<div id="prodThumbnails">
<table style="width: 641px;">
<tbody>
<tr>
<td align="right" style="vertical-align: middle;">
</td>
<td nowrap="nowrap" class="productPhotoThumbnailSection">
<a onclick="javascript:drawMainImage('0', '')" href="javascript:swapImage()">
<img height="30" width="30" border="0" title="" alt=""
src="images/products/85.png"/></a>
<a onclick="javascript:drawMainImage('1', '')" href="javascript:swapImage()"><img height="30" width="30" border="0" title="" alt=""
src="images/products/90.jpg"/></a>
<a onclick="javascript:drawMainImage('2', '')" href="javascript:swapImage()">
<img height="30" width="30" border="0" title="" alt="" src="images/products/92.jpg"/></a>
</td>
<td align="left" style="vertical-align: middle;">
</td>
</tr>
</tbody>
</table>
</div>
i tried doing this
$(function() {
$("td.productPhotoThumbnailSection img").attr("width","64px");
$("td.productPhotoThumbnailSection img").attr("height","64px");
});
and it keeps setting the image width and heights to 0