jquery 元素 + 下一个

jquery element + next

我的网站中有这段自动生成的代码,我想获取 <p> 标签并将其隐藏。

<div id="PD_superContainer"></div>
<script type="text/javascript" charset="UTF-8" src="//static.polldaddy.com/p/8895171.js"></script>
<noscript>&lt;a href="http://polldaddy.com/poll/8895171"&gt;Take Our Poll&lt;/a&gt;</noscript>
<p></p>

你可以试试

$('#PD_superContainer').nextUntil('p').last().next('p').hide()

如果有任何其他 p 元素

,使用 nextAll('p') 可能会导致问题