Simulate a submit button click in Canvas to set a cookie.
jQuery(document).ready(function($){ $('#my-close-button').on('click', function(event){ $('#om-canvas-whiteboard-optin-wrap .om-close').trigger('click'); }); });