removing duplicates from html elements

前端 未结 6 1860
野趣味
野趣味 2020-12-21 17:49

what\'s the best way to remove the grapes duplicate from this? there are tons of ways of removing duplicates from simple arrays, but this would be an array with html element

6条回答
  •  星月不相逢
    2020-12-21 18:16

    Here is the working fiddle for this:-

    http://jsfiddle.net/HwUUs/1/

    $( "div:contains('grapes')" ).remove();
    

提交回复
热议问题