Hello All -
This seems pretty straight forward, but I can't make it work.
I'm getting an id from a td element that's being fed into var currentId.
Now, if input#dateIn is NOT empty, AND input#dateOt IS empty, then the value of currentId needs to go into input#dateOt.
What's happening is that my little script snipped below is feeding the currentId into both #dateIn AND #dateOt inputs.
if (($('input#dateIn').val() != '') && ($('input#dateOt').val() == '')){
$('input#dateOt').val(currentId);
}
Apparently I'm going wrong with the "&&" operator or some other syntax error I can't see.
Can someone please straighten me out?
Thanks to all in advance.
Neophyte