I have a function that has one string parameter that contains a field name from a form. I would like to place focus on that field using the passed parameter. How do I do that?
For example:
function placeFocus(fieldname)
{
document.forms[0].+ fieldname + .focus();
}
For example:
function placeFocus(fieldname)
{
document.forms[0].+ fieldname + .focus();
}