Click to See Complete Forum and Search --> : name of the input box


fark
10-07-2003, 11:17 AM
This refers to the value in the input field
document.frm1.elements[i].value
I need the name of the input field
I tried
document.frm1.elements[i].Name
but that did not work

Thanks for your help

pyro
10-07-2003, 11:27 AM
You were close. JavaScript is case sensative, and Name needs to be name:

document.frm1.elements[i].name

fark
10-07-2003, 11:31 AM
Darn Shift key! Thanks for the help!
I had just guessed that that was the keyword because asp does it that way but didn't guess it would be case sensitive. Thanks Again.

pyro
10-07-2003, 11:37 AM
No problem... :)