[Javascript] setting select drop selectedIndex
João Cândido de Souza Neto
joao at curitibaonline.com.br
Wed Aug 2 12:29:44 CDT 2006
If state is a variable that contains the value that will be selected, it
could be done like this:
document.checkout.billingstate.value = state;
----- Original Message -----
From: "Schalk" <schalk at volume4.com>
To: "[JavaScript List]" <javascript at LaTech.edu>
Sent: Wednesday, August 02, 2006 2:21 PM
Subject: [Javascript] setting select drop selectedIndex
> Greetings All,
>
> Should the following be able to set the selectedIndex of a select drop
> down?
>
> document.checkout.billingstate.options[document.checkout.billingstate.selectedIndex].value
> = state;
>
> Thanks!
>
> --
> Kind Regards
> Schalk Neethling
> Web Developer.Designer.Programmer.President
> Volume4.Business.Solution.Developers
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
More information about the Javascript
mailing list