Created
November 27, 2015 20:53
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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