momal_1
11-24-2004, 04:41 AM
Hi,
I have a function which references a form element where the name can change.
Here is what it is so far:
function test***ntion(fieldName) {
document.form1.fieldName.value=='Hello'
}
I have tried the getElementID() method, but that doesnt work. As the field doesnt physically exist, i always get the error sayin
"document.form1.fieldName.value is null or not an object"
Can snyone help?
Thanks
I have a function which references a form element where the name can change.
Here is what it is so far:
function test***ntion(fieldName) {
document.form1.fieldName.value=='Hello'
}
I have tried the getElementID() method, but that doesnt work. As the field doesnt physically exist, i always get the error sayin
"document.form1.fieldName.value is null or not an object"
Can snyone help?
Thanks