Javascript - get a date from an HTML input

后端 未结 2 1503
一生所求
一生所求 2020-12-31 09:16

I am currently trying to take the value from an HTML input (below)


and put it into a javascr

2条回答
  •  一向
    一向 (楼主)
    2020-12-31 10:04

    Make sure your script is executing after the DOM has fully loaded. To do this you can put your JS code in a function and call the function once the DOM has loaded, or just put your JS code at the end of your page, right before .

提交回复
热议问题