Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dynamically set getElementById

Status
Not open for further replies.

copeZero

Programmer
Aug 31, 2007
46
CA
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();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top