Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <script type="text/javascript">
  2. $(document).on("click", ".my-test", function() {
  3. console.log('New element added!');
  4. });
  5. </script>
  6.  
  7. <script type="text/javascript">
  8. /* Just run when it's added... */
  9. $(document).on(".my-test", function() {
  10. console.log('New element added!');
  11. });
  12. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement