阅读背景:

使用jquery删除具有给定id的所有元素

来源:互联网 

I have a form with several spans with id="myid". I'd like to be able to remove all elements with this id from the DOM, and I think jQuery is the best way to do it. I figured out how to use the $.remove() method to remove one instance of this id, by simply doing:I have a form with several spans with id="myid"




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: