JavaScript - writing value into html form from script

后端 未结 3 1262
Happy的楠姐
Happy的楠姐 2021-01-19 03:00

I was wondering how I could input a value into a form with html. So right when the user goes to the site there\'s numbers in the text boxes already and they use those number

3条回答
  •  遇见更好的自我
    2021-01-19 03:27

    To have numbers in input fields you can set them to have a value, like value="10" and the default value would be 10 until the user changes it.

提交回复
热议问题