Passing javascript variable to html textbox

前端 未结 6 1888
旧巷少年郎
旧巷少年郎 2020-12-14 04:53

i need help on html form.

I got a javascript variable, and I am trying to pass the variable to a html form texbox. I want to display the variable on the textbox dyna

6条回答
  •  有刺的猬
    2020-12-14 05:18

    You could also use to localStorage feature of HTML5 to store your test value and then access it at any other point in your website by using the localStorage.getItem() method. To see how this works you should look at the w3schools explanation or the explanation from the Opera Developer website. Hope this helps.

提交回复
热议问题