Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript select input text on focus

focusMethod = function getFocus() {           
  document.getElementById("myTextField").focus(); //select the input textfield and set the focus on it
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #select #input #text #focus
ADD COMMENT
Topic
Name
3+8 =