add input.selectionStart and input.selectionEnd