Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $(".dropdown ul li").live("mouseover", function() {
  2. alert('mouseover works');
  3. });
  4.  
  5. $(".dropdown ul li").on("mouseover", function() {
  6. alert('mouseover works');
  7. });
  8.  
  9. $(".static-parent").on("event1 event2", ".dynamic-child", function() {
  10.  
  11. $(".dropdown").on("mouseover", "li", function() {
  12. alert('mouseover works!!!!!!!!!');
  13. });
  14.  
  15. jQuery(function($) { // DOM is now ready and $ alias secured
  16.  
  17. $(".dropdown").on("mouseover", "li", function() {
  18. alert('mouseover works!!!!!!!!!');
  19. });
  20.  
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement