And of course I want to do this code-wise. It\'s not that there isn\'t alternative to this problem I\'m facing, just curious.
After much frustration trying to test a field name which is passed via a variable, I came up with this:
`function isset(fName){
try{
document.getElementById(fName).value=document.getElementById(fName).value;
return true;
}catch(err){
return false;
}
}
`
The function uses the try/catch function of javascript - if it can't set the field value it will trigger an error which is caught and passed back as false, otherwise true is returned.