Hi all,
I have a js function where I pass in a form field name as a parameter, like
function myFunction(inFieldName) {
}
Within the function I would like to set the value of the field name I passed in, like
inFieldName.value = someValue ;
except that doesn't work. I tried
[inFieldName]value = someValue ; //and
[inFieldName].value = someValue ;
but none of those work either. Can this be done, and if so how?
I have a js function where I pass in a form field name as a parameter, like
function myFunction(inFieldName) {
}
Within the function I would like to set the value of the field name I passed in, like
inFieldName.value = someValue ;
except that doesn't work. I tried
[inFieldName]value = someValue ; //and
[inFieldName].value = someValue ;
but none of those work either. Can this be done, and if so how?