Entering Values from Javascript, do not reflect in Calender event

When I try to enter/change the value, through JS by document.getElementsByClassName property, of description(textarea) box in the Calender app. The value gets displayed in the description box. But, afterwards when I click on Save, the event saves without the changed/entered value through JS. I even tried triggering the change, keyup, keydown, etc events after changing the value but didn’t achieve any success.

Any ideas or help in order to achieve this?

To anyone who’s finding a solution to it:
Use the input event, figured it right now!
element.dispatchEvent(new Event(“input”));