Save data without submit button

I would like to know if it is possible to save the data entered in an input in a database without the need for a submit button.

I don’t know if it’s possible with onClick or onChange.

It is possible (with onChange and onInput).
See:
https://www.wix.com/velo/reference/wix-dataset/dataset/setfieldvalues
https://www.wix.com/velo/reference/wix-dataset/dataset/save