Good morning, I ask for another little help:
I have three fields:
start_date ---> date format
end_date ---> date format
months ---> number format
"start date" field (insert the date)
"month" field insert a numerical value (therefore the months);
"end date" field is the result of the start date + months.
in add page I would like to add the months to the start date, in javascript I try to do this:
{ // keys = event types, values = handler functions
"change keyup keydown keypress blur": function(e) {
var $row = $(this).fields();
var miadata = new Date ($row["start_date"].value());
var fine= miadata.getMonth() + 1;
$row["DATA_FINE"].value(fine);
}
}
I'm trying them all. I look for solutions in the forum, but I can not find anything.