Last active
December 2, 2019 16:29
-
-
Save AntMooreWebDev/e919b69bd32f2eed61099e8641746363 to your computer and use it in GitHub Desktop.
The generic code for firing events on elements that are loaded dynamically. This is particularly useful if the elements are generated by a plugin and you cannot utilise CreateDynamicElements.js (https://gist.github.com/AntMooreWebDev/bbd29b7f5298409dba12aed9a71ee81b).
This file contains 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
$('body').on('[event]', '[element]', function () { }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment