In JavaScript first focus on the control and then select the control to display the cursor on texbox…
document.getElementById(frmObj.id).focus();
document.getElementById(frmObj.id).select();
or by using jQuery
$("#textboxID").focus();
In JavaScript first focus on the control and then select the control to display the cursor on texbox…
document.getElementById(frmObj.id).focus();
document.getElementById(frmObj.id).select();
or by using jQuery
$("#textboxID").focus();