How To Get Value From HTML DOM Input To JavaScript

Share Now

Share on facebook
Share on pinterest
Share on twitter
Share on linkedin
Share on email

IN HTML:

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

IN JS:

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

Nahid Mahamud

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