Created
November 27, 2015 20:51
-
-
Save ericakfranz/f258aa1473f82f44f7ea to your computer and use it in GitHub Desktop.
Trigger a click on a specific MonsterLink when hovering over any link containing the rel="external" attribute.
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($){ | |
$('a[rel*=external]').live('mouseover', function() { // When any link contains 'external' in the rel attribute | |
$('.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