Firstly I added the numeric id to most of my div class="line"
var adder = document.getElementsByClassName("line");
for(var i = 0 ;i<adder.length;i++){
adder[i].id=i;
}
How to remove the divs which id is larger than, for an exaple, 10?
I fell into trouble when using parameter as the id in JS. It seems that it's illegal to write like this document.getElementsById(i);
PS: Is that appropriate to set id as pure Arabic numbers?