It sounds like you would prefer if I just write some code for you instead of doing it yourself. I don't mine doing that. I am willing to advise you with a consultation fee.
So you have no idiom in vanilla JS for this. You just rewrite the boilerplate on every field. Any coder can do that. Do you have a proper abstraction for this or is it just "hurr write the code"?