Hi i'm passing the id of the elemnet into a function (as fieldVal) and am tying to set the focus of that element during the function, i've tinkered with it for a while, must be something obvious? any ideas on this
document.getElementById(''+fieldVal+'').focus();
document.getElementById(''+fieldVal+'').focus();