Programmatically selecting text in an input field on iOS devices (mobile Safari)

input.setSelectionRange(0, 9999);

https://developer.mozilla.org/en/DOM/Input.select

Leave a Comment