M
mark4asp
What is the best way to empty a list box, 1, 2 or 3?
1. document.myForm.myListBox.options.length=null;
2. document.myForm.myListBox.options.length=0;
3. for (var i=0; i<document.myForm.myListBox.options.length; i++)
document.myForm.myListBox.options=null;
1. document.myForm.myListBox.options.length=null;
2. document.myForm.myListBox.options.length=0;
3. for (var i=0; i<document.myForm.myListBox.options.length; i++)
document.myForm.myListBox.options=null;