View Single Post
  #12 (permalink)  
Old May 14th, 2004, 02:54 PM
qhong qhong is offline
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Imar,

Thanks for your reply. At this moment, I don't have any place to upload the example. If you would like, I can attach the file to you.

As for the Snib wrote, I am not very clear about.

var valueToSelect = '<%ASPValueToSelect%>'
function PreselectMyItem(itemToSelect)
{
 for(myItem in myDropdown)
  {
   if(myItem.value = valueToSelect)
   myItem.selected = true;
  }
}

This is how I revised Snib code according to my form.

var valueToSelect = '<%frmTimeOffRequest.mnuName.selectedIndex%>'
function PreselectMyItem(itemToSelect)
{
 for(myItem in myDropdown)
  {
   if(myItem.value = valueToSelect)
   myItem.selected = true;
  }
}

What is myItem, myDropDown. I am getting confused.

Thanks,

Quinn





Reply With Quote