View Full Version : choosing drop down box
chrismiceli
10-06-2002, 04:18 AM
hey, i need to be able to select the item in a drop down box from a function. here is a snipet of code which doesn't work but will give you an idea of what i am trying to do
document.form1.box.options[1].focus();
whammy
10-06-2002, 04:39 AM
document.form1.box.selectedIndex = SOMENUMBER
The selectedIndex starts with 0; 0 would be the first thing in your dropdown box - and focus won't work with a select :)
chrismiceli
10-06-2002, 04:44 AM
thanx you moderators always seem to help. :) :thumbsup:
whammy
10-06-2002, 04:50 AM
:cool:
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.