Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.
window.onload = blah;
function blah()
{
..
..
var which = document.getElementById('TheList');
for(i=0;i<which.length;i++)
{
if(which.options[i].value == '" & Session("PreSelValue") & "')
{
which.selectedIndex = i;
window.document.Form2.elements['TheTextBox'].value = which.options[i].value;
break;
}
}
..
..
}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
for(i=0;i<which.length;i++
to
for(i=0;i<which.options.le