Skip to content

Instantly share code, notes, and snippets.

@ericakfranz
Created November 27, 2015 20:53
Show Gist options
  • Save ericakfranz/7da654ddc67b91a68292 to your computer and use it in GitHub Desktop.
Save ericakfranz/7da654ddc67b91a68292 to your computer and use it in GitHub Desktop.
Trigger a click on a specific MonsterLink when hovering over a specific element on the page.
jQuery(document).ready(function($){
$('.content').live('mouseover', function() { // When hovering over any element with the '.content' class - change as you require
$('.manual-optin-trigger[data-optin-slug=u6mkwuqm0xf6g94d]').trigger('click'); // Change 'u6mkwuqm0xf6g94d' to match your specific optin slug
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment