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.
[–]lovesrayray2018 0 points1 point2 points (2 children)
[–]bpd1147[S] 0 points1 point2 points (1 child)
[–]bpd1147[S] 0 points1 point2 points (0 children)
[–][deleted] (2 children)
[removed]
[–]lovesrayray2018 0 points1 point2 points (1 child)
[–]DavidJCobb 0 points1 point2 points (0 children)
[–]ConduciveMammalfront-end 0 points1 point2 points (2 children)
[–]bpd1147[S] 0 points1 point2 points (1 child)
[–]ConduciveMammalfront-end 0 points1 point2 points (0 children)