Select some text in the input element by setting selectionStart and selectionEnd