[Javascript] JavaScript Default Value
mark
mark.r.osullivan at aib.ie
Wed Apr 21 11:13:43 CDT 2004
Thanks. Javascript isn't my strong point. Thats great to know.
----------
> From: Peter Brunone <peter at brunone.com>
> To: '[JavaScript List]' <javascript at LaTech.edu>
> Subject: RE: [Javascript] JavaScript Default Value
> Date: 21 April 2004 17:01
>
> Hi Mark,
>
> To select any item in the list, use the read/write property
> called selectedIndex; this indicates the position, in a zero-based
> array, of the currently selected item (so setting selectedIndex to 0
> would select the first item).
>
> To reset (or "unselect") the list, set Windowsdropdown.selectedIndex =
> -1.
>
> Cheers,
>
> Peter
>
> -----Original Message-----
> From: javascript-bounces at LaTech.edu On Behalf Of mark
>
> Hi,
> Anyone know a solution to this problem. Have drop-down menu like this:
> <select size="0" name="Windowsdropdown"
> onChange="javascript:showdivsdropdown(this.form,'windowsOperatingSystem'
> )"><
> option value="select" selected>select</option><option value="1" >1
> </option><option value="2">2</option><option value="3">3</option><option
> value="4">4</option></select>
>
> I'm using divs in html and trying in javascript to get index into select
> drop-down box to set the default value again. As can be seen be the
> above example the default is selected. Is it possible in javascript to
> reset this default value?
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
**********************************************************************
This document is strictly confidential and is intended for use by
the addressee unless otherwise indicated.
Allied Irish Banks
**********************************************************************
More information about the Javascript
mailing list