0
I am trying to fill in an input date type, through a JS function I’m trying something like:
id('nascTit').value = 2005-05-15;
but the following error appears:
The specified value "yyyy-MM-dd" does not conform to the required format, "yyyy-MM-dd".
Does anyone know the right way to date?
Thanks in advance.
What is the return of the function
id
? Did you pass the date as a string? Why2005-05-15
is a squid equal to 1985– Costamilam
what is
id('')
is a function?– novic
missing quotation marks on the date. No?
– Leandro Amorim
it wasn’t quotes that were missing, this function actually used the Document.getElementById, I wasn’t understanding how it worked, but thanks guys..
– Max