I have a collection of paragraph elements. Some are empty and some contain whitespace only, while others have content:
Pellentesque habitant morbi t
In my case this was my solution:
var temp = document.getElementsByClassName('level-size'); for (var i = 0, len = temp.length; i < len; i++) temp[0].remove();
temp[0] because each time I remove it, the hole table is pushed back one index.