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.
Hi guys, I've got a form with a series of inputs, one being a date input for date of birth, all this information will go into a user profile.
On page load I want the date input to display today's date rather than being blank, as this mucks up the page layout. Currently it's blank until I click on it, then it displays today's date and fixes the layout.
I'd also like to prevent the date input from displaying any future dates. I know you can use the "max" attribute, but is there a way to set it to the value of a variable for instance, rather than physically writing today's date?
Any help is greatly appreciated.
Post Details
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/webdev/comm...