Using a dynamically generated link
-
I’m trying to use this plugin with links that are generated – meaning they are populated after page load. I can’t get around this.
Because if this, it seems that the required event isn’t attached to my link.So I have something simple like this (rendered to the page way after page load):
<a href="#wow-modal-id-1">open modal</a>
And the modal is added to the page:
[Wow-Modal-Windows id=1]
Assuming you’re using jQuery, I think a fix would be to add the event using a selector:
jQuery('document').on('click', '.someSelector(?)', function(e) { // do stuff });
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Using a dynamically generated link’ is closed to new replies.