This topic is locked
[SOLVED]

 Set Focus to Search Control on List Page

4/29/2014 2:08:07 AM
ASPRunnerPro General questions
K
kalike author

I am attempting to setFocus to the search box at the top of a list page. What do I put in place of the pageid, 'Make' to reference the search control as in the following?
var ctrl = Runner.getControl(pageid, 'Make');

K
kalike author 5/28/2014



I am attempting to setFocus to the search box at the top of a list page. What do I put in place of the pageid, 'Make' to reference the search control as in the following?
var ctrl = Runner.getControl(pageid, 'Make');


Figured it out:
document.getElementById("ctlSearchFor1").focus().select();