[].slice.call(document.getElementById('test-list').children).filter(function (x) { if (x.innerText === 'JavaScript' || x.innerText === 'HTML' || x.innerText === 'CSS') { return false; } else { return true; } }).forEach(function (x) { var parent = x.parentElement; parent.removeChild(x); });
Sign in to make a reply
ClarenceYK