114
rated 0 times
[
116]
[
2]
/ answers: 1 / hits: 80747
/ 11 Years ago, tue, october 1, 2013, 12:00:00
I want to check if the user entered a date.
But I can't figure it out how to do it.
Here's some javascript code what i already got but doesn't work :
var valueDate = document.getElementById('Date').value;
if ( valueDate== null || valueDate== '')
{
alert('Date is empty');
return false;
}
And the HTML <input type=date name=Date id=Date/>
Thanks in advance!
More From » input