move cursor to the beginning of the input field?

前端 未结 4 928
面向向阳花
面向向阳花 2020-12-01 11:39

when you click on \'Ask question\' here in Stackoverflow you see a text \"What\'s your programming question? Be descriptive.\"

i want the same thing and all i need f

4条回答
  •  遥遥无期
    2020-12-01 12:35

    May be that is an overkill, but these functions are helpful to select a portion of an input field.

    The code below place the cursor to the first char of the second field.

    
    
        so
    
    
        
        
        
    
    
    

提交回复
热议问题