JavaScript - writing value into html form from script

后端 未结 3 1214
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:40

    well you can put this script after the form is created:

    Value 1:
    Value 2:
    Answer:

    That would generate random numbers for you and put them in the form See here for the code: http://jsfiddle.net/wVAFt/

提交回复
热议问题