New filters on the Home Feed, take a look!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Compare selected date with current date
Post Body

Hi guys, I've got another issue.

I'm validating a form client side, if an inputs value is wrong the input turns red with white text, if it's value is correct it remains or turns back to black on white.

Is there a way to do this with a date input?

I can access the date input and display it's value, but I cannot seem to get it to compare to the "today" variable.

Thanks in advance.

Author
Account Strength
90%
Account Age
5 years
Verified Email
Yes
Verified Flair
No
Total Karma
776
Link Karma
53
Comment Karma
723
Profile updated: 1 day ago
Posts updated: 9 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago