Checking Date field for anything

wxdqz

New Member
We are trying to see if a user input anything in a date field. The snippet code is
if (ele.name.match(/dueDate.+)){
dueDateVar = ele[ele.name];
if dueDateVar.value.length == 0) {
set value to 0;
}
else {
set value to 1;
}
}

Right now it is always setting it to 1 whether there is something there or not.

We are using a calendar popup to input the date.
 
Back
Top