[Javascript] default value for combobox

Cutter Bl cutterbl at hotmail.com
Wed Mar 20 07:13:53 CST 2002


Look into 
myForm.selectBoxName.options[myForm.selectBoxName.selectedIndex].value

(seems like a lot, but you have to get tricky to also deal with NN 4.x)

Cutter
http://www.falcon-knives.com

----Original Message Follows----
From: "Dan Costea" <costea.dan at ssi-schaefer.ro>
Reply-To: javascript at LaTech.edu
To: <javascript at LaTech.edu>
Subject: [Javascript] default value for combobox
Date: Wed, 20 Mar 2002 12:27:53 +0200

     Hi,
If I want to find the default value for an editbox (<input type="text">), I
use the "defaultValue" attribute: editbox.defaultValue; for the checkbox or
radio, I use "defaultChecked". But how can I find the default text written
in a combobox?

Thanks,
Dan

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




More information about the Javascript mailing list