user472285 user472285 - 1 year ago 102
Javascript Question

jQuery remove a td that contains img src blank

<img width="8" height="1" src="/_layouts/images/blank.gif" alt="">

how can i remove a td that contains
<img src="/_layouts/images/blank.gif"


Answer Source

Match a <img /> which is a child of a td using a combination of the child selector and the attribute equals selector:

$('td > img[src="/_layouts/images/blank.gif"]')

and then select it's parent using parent(), and remove it using remove();

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download