PDA

View Full Version : javascript: How do I find out the number of OPTIONS i have and set one as SELECTED


RetroGamer1991
09-14-2005, 07:29 PM
I need to have my Javascript go through and find out how many OPTIONS I have dynamically (since I'll be adding some later on) and I need for it to also set one of them to be SELECTED. (it reads that info from my PHP Session)

I figured it out. My javascript syntax was wrong, used a LOT of document.write lines to test different kinds of syntax

steverz
09-15-2005, 12:24 AM
It is possible to do with VBScript. Im not sure about Javascript.