brainfoolong / form-data-json

A zero dependency, cross browser library to easily get or set/manipulate form input values as/from a json object.
https://brainfoolong.github.io/form-data-json
MIT License
57 stars 10 forks source link

Trigger for 'onchange' #20

Closed Nazar84 closed 2 years ago

Nazar84 commented 2 years ago

Is your feature request related to a problem? Please describe. Hey! I am using the 'fromJson' method to set data to my form. And I have disabled fields. Fields filled by the 'onchange' event on some other fields. But when filling out the form with 'fromJson', 'onchange' doesn't fire.

Describe the solution you'd like It would be usefull triger 'onchange' when we set data to Form programmatically. In support of the popularity of this need, I provide a link: https://stackoverflow.com/questions/3179385/val-doesnt-trigger-change-in-jquery

brainfoolong commented 2 years ago

Hi. Please see option triggerChangeEvent here - https://github.com/brainfoolong/form-data-json#all-default-options-for-fromjson

Nazar84 commented 2 years ago

Thanks!