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

前端 未结 4 2223
日久生厌
日久生厌 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:20

    this will do it with just javascript - you can also put the function in a .js file and call it with onclick

    //button
    
    button

提交回复
热议问题