Tuesday, February 11, 2014

Setting focus/highlighting a field

input onfocus="this.select();"  This selects field when the field receives focus

or

document.getElementById("fieldName").select();  This highlights field


document.getElementById("FieldName").focus();   Just sets focus to field.

No comments:

Post a Comment