Set cursor at a length of 14 onfocus of a textbox

前端 未结 3 626
一整个雨季
一整个雨季 2020-11-27 23:16

Hai Guys, I want to set cursor at a position of length 14 on a textbox which will not have a value.. Iknow initially cursor will be at 0 i want it to be at 14

3条回答
  •  伪装坚强ぢ
    2020-11-27 23:21

    The moveStart and moveEnd methods expects 2 parameters. The first parameter is a string (character, word, sentence or textedit). The second parameter is an integer and refers to the number of units to move. http://msdn.microsoft.com/en-us/library/ie/ms536623%28v=vs.85%29.aspx

提交回复
热议问题