문제

I have a peice of HTML that is being dynamically created from who knows where. Instead of tracking it down can I just run some jQuery to remove it? I want to delete all instances of:

<div style="clear:both"></div>
도움이 되었습니까?

해결책

You could consider something like this:

$('div[style*=both]').remove();

다른 팁

$("div").remove();

The above will remove all divs.

You might want to provide some more context, to limit the removal to this particular div though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top