View Single Post
  #13 (permalink)  
Old May 14th, 2004, 03:42 PM
Snib Snib is offline
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

OK, a couple things.

1) I forgot to define myItem.

Add this line to the code before the for() loop:
var myItem;

2) Your ASP is messed up:
<%frmTimeOffRequest.mnuName.selectedIndex%>
Does this ASP variable actually exist? It looks like JS.
Anyway you forgot your '=':
<%=frmTimeOffRequest.mnuName.selectedIndex%>

3) myDropDown is your dropdown box.

4) I did not post a function in the first place. I'm not seeing why itemToSelect is in the function you made at all. It's never used.

Let me know if you need more info :)

Snib

<><
Reply With Quote