remove the id attribute from a div using jquery?
Posted
by
getaway
on Stack Overflow
See other posts from Stack Overflow
or by getaway
Published on 2011-01-04T01:21:44Z
Indexed on
2011/01/04
1:54 UTC
Read the original article
Hit count: 186
i want to remove the id attribute from this image:
<img width="270" class="thumb" id="thumb" height="270" src="img/1_1.jpg" />
i tried doing this:
$('img#thumb').RemoveAttr('id','none');
but its not remving it!
thanks
EDIT:
$('img#thumb').attr('src', response);
$('img#thumb').attr('id', 'nonthumb');
this deosnt load the picture, or in this case the src!! but when i remove the id attribute, it works fine
© Stack Overflow or respective owner