David Kimura PRO said almost 5 years ago on Creating a Gem From Existing Code :
If I understand your question correctly, you may be looking for the `onfocusout` event. https://www.w3schools.com/jsref/event_onfocusout.asp Within the listener function, you would search for the parent form and submit it through javascript. It looks like you're trying to do an autosave which seems pretty cool and would make for a great episode as there are many approaches to this.