Tuesday, July 21, 2009

set blinking cursor in textbox

This is really very simple.
Use focus() and select() method.

like ::

document.getElementById(txtBox).focus();
document.getElementById(txtBox).select();

No comments: