I always forget how to bind events to elements when dynamically loaded when I need it most.
So I decided to make a blog post so I can get the answer really fast.
1 | $(document).on('click', '.class', function(ev){ |
I always forget how to bind events to elements when dynamically loaded when I need it most.
So I decided to make a blog post so I can get the answer really fast.
1 | $(document).on('click', '.class', function(ev){ |