Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Adding and deleting options from select box on load


Message #1 by chrscote@9... on Fri, 31 Jan 2003 14:01:14
I think I've figured out my problem...  First of all, what I meant to type 
was OptToAdd = new Option(DaysOfWeek[n],n);
but this still doesn't solve the problem.  I still get an error that it 
doesn't accept the property or method.  I think the problem is that I am 
using a number in the Option() call instead of a string.  I don't 
understand why this is a problem, but all the examples I've seen use 2 
strings when creating a new Option.  Is there a way to get around this 
problem, if in fact this is the problem?

  Return to Index