How To Get Value From HTML DOM Input To JavaScript

Share Now

IN HTML:

<input type="hidden" id="StartDate" value="2018/2/21">

IN JS:

var datex = document.getElementById("StartDate").value;
Picture of Nahid Mahamud

Nahid Mahamud

Web Developer | Graphic Designer | WordPress & Woo-commerce Expert