jacksondorado
IS-IT--Management
I am having trouble debugging a form. I want to change the birthday form field from a text field to three dropdowns for month, day, year.
To sum up:
HOW can I equate:
var bdayin = document.getElementById("userBirthday");
var bdaydate = neuro_parseDate(bdayin.value);
with
var bdayin = document.getElementById("Month").value + "/" + document.getElementById("Date").value + "/" + document.getElementById("FullYear").value;
var bdaydate = neuro_parseDate(bdayin);
DETAILS:
I keep getting errors about the object type. The
document.getElementById("txtBirthday").date
is the object type it reads currently.
I tried to create the same variable with
document.getElementById("Month").value + "/" + document.getElementById("Date").value + "/" + document.getElementById("FullYear").value
but it doesn't seem to work. Can someone tell me what .date means at the end of the variable? Also, does a text field element object have any properties before using .value to get the value?
To sum up:
HOW can I equate:
var bdayin = document.getElementById("userBirthday");
var bdaydate = neuro_parseDate(bdayin.value);
with
var bdayin = document.getElementById("Month").value + "/" + document.getElementById("Date").value + "/" + document.getElementById("FullYear").value;
var bdaydate = neuro_parseDate(bdayin);
DETAILS:
I keep getting errors about the object type. The
document.getElementById("txtBirthday").date
is the object type it reads currently.
I tried to create the same variable with
document.getElementById("Month").value + "/" + document.getElementById("Date").value + "/" + document.getElementById("FullYear").value
but it doesn't seem to work. Can someone tell me what .date means at the end of the variable? Also, does a text field element object have any properties before using .value to get the value?