Add a string of text into an input field when user clicks a button

前端 未结 4 2200
日久生厌
日久生厌 2020-12-14 08:49

Basically just trying to add text to an input field that already contains a value.. the trigger being a button..

Before we click button, form field would look like..

4条回答
  •  攒了一身酷
    2020-12-14 09:32

    Don't forget to keep the input field on focus for future typing with input.focus(); inside the function.

提交回复
热议问题