Copy field value to another simultaneously
Copy field value to another simultaneously

Hi everybody,
Maybe it's a dummy question but I'm stucked and I need your help ...
In my project I have 2 date fields. First : Arrival date / Second : Check-in date . I would like to fill the second field automatically with the same date from the first.
Usually a simple jquery code works, like this :
var $first= $('#DTE_Field_arrival_date'),
$second = $('#DTE_Field_check_in_date');
$first.on('input', function () {
$second.val($src.val());
});
But apparently, not in datatables editor. Can somebody help me ?
Thank you !
Answers
If you're referring to updating it on change, you can use
e-dependent()
to do that - it allows you to do an action based on the change of a field.Colin