Hi,
I'm fairly new to JavaScript and wondering if anyone can help with a query I have. I have an html input box where the user enter's the date in the format dd/mm/yyyy. I would like the box to default to the current day's date (i.e. before the users enters their own, or if they enter nothing at all.) Does anyone know how to do this? Also, I would like to include a short bit of code to check the date is valid.
Thanks v. much for your help!
I'm fairly new to JavaScript and wondering if anyone can help with a query I have. I have an html input box where the user enter's the date in the format dd/mm/yyyy. I would like the box to default to the current day's date (i.e. before the users enters their own, or if they enter nothing at all.) Does anyone know how to do this? Also, I would like to include a short bit of code to check the date is valid.
Thanks v. much for your help!