JS input type date field, keep values selected after form submission

后端 未结 3 1366
天命终不由人
天命终不由人 2021-01-24 08:45

Is there a way for the



        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-24 09:08

    Use HTML5 with storage stored the value in a variable after clicking the submit button. you can do whatever you want with that variable

    localStorage.setItem("user_selected_date", value); 
    

提交回复
热议问题