|
-
Aug 21st, 2003, 05:51 AM
#1
Thread Starter
Fanatic Member
Getting values of select box
I am trying to retrieve the value of some selects on my page i am trying this
var day = document.form2.F_C_DAY.selectedIndex.value
var month = document.forms.form2.F_C_MONTH.value
var year = document.forms.form2.F_C_YEAR.value
but alerting them gives undefined. what am i doing wrong
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|