I have this code i used in an older version of jquery and we updated to a new version. Live is no longer supported how can i change this to using the On keyword thanks.
('form').live("submit", function (event) {
mixpanel.track("Action - Sent Email Message");
});