I'm trying to delete all element of <select></select>.
All element will be dynamically generated with document.createElement('op
tion'); triggered by my php script.
It actually deletes the element(s), but not everything and not same reuslt everytime.
I just need delete all elements.
Please someone advise.
var delSel = document.getElementById('tlist');
if (delSel.length > 0)
for (var i=0; i <= delSel.length; i++)