I have ID’s stored in array and I need to remove the associated ID’s from my page. The part that I’m confused on is passing the variable in to know what ID’s to remove
I’m hoping that I’m fairly close to being right.
$.each(diff, function () {
$('ul#jdl li').remove();
});
“diff” is the array containing the ID’s
This should work for you if I understand your question correctly: