I\'m searching a solution to remove tags filtered using javascript array.
Array:
var mygroups=[\"1\",\"8\",\"3\",\"4\",\"5\"]
How about using a filter function.
In this scenario you select all the li and filter out the desired one.
li
$('li').filter(function(index){ if(/*condition applied*/){ .... } });