I'm trying to set an entwine hook to the save button inside a GridField edit form so that right before saving, a JavaScript function is executed.
I've tried the code below without success
$('button[type="submit"]').entwine({
onclick: myFunction
});
What is the JavaScript code to hook an entwine onclick event on the GridField save button?