Ngày đăng: 22/02/2020

Calculate Date with JavaScript on load


HI,

I want to calculate an input field (date[fa_bindefrist]) depending on a second input field (months[fa_bindung]).
I choose the months from a dropbox (e. g. 6) and want to have the date calculated by Javascript on load event: Date is today + number of months.
Sounds easy, but I just can't get it right. 

Please help.
Thanks!