This seems so simple yet I can't seem to get this right.
I have an asp.net listbox that is populated by JS only. The user has no control over the listbox other than the JS putting things in the listbox for them. Each time the JS enters a new item in the box it runs a selectAll() function to make sure each item in the listbox is selected. Here is the JS:
function selectall()
{
for(var i = 0; i < document.form1.mL_names.options.length; ++i)
document.form1.mL_names.options[i].selected = trueGo to the complete details ...