how to select all text when input box is clicked

Solutions on MaxInterview for how to select all text when input box is clicked by the best coders in the world