Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. $("table.planning_grid td").live({
  2. mouseenter:function(){
  3. $(this).parent("tr").find("a.delete").show();
  4. },
  5. mouseleave:function(){
  6. $(this).parent("tr").find("a.delete").hide();
  7. },
  8. click:function(){
  9. //do something else.
  10. }
  11. });
  12.  
  13. $("table.planning_grid td").on({
  14. mouseenter:function(){ //see above
  15. },
  16. mouseleave:function(){ //see above
  17. }
  18. click:function(){ //etc
  19. }
  20. });
  21.  
  22. $("table.planning_grid").on('mouseenter','td',function(){});
  23.  
  24. $("table.planning_grid").on('td',{
  25. mouseenter: function(){ /* event1 */ },
  26. mouseleave: function(){ /* event2 */ },
  27. click: function(){ /* event3 */ }
  28. });
  29.  
  30. $("table.planning_grid").on({
  31. mouseenter: function() {
  32. // Handle mouseenter...
  33. },
  34. mouseleave: function() {
  35. // Handle mouseleave...
  36. },
  37. click: function() {
  38. // Handle click...
  39. }
  40. }, "td");
  41.  
  42. $('table.planning_grid').on('mouseenter mouseleave', function() {
  43. //JS Code
  44. });
  45.  
  46. $("table.planning_grid").on({
  47. mouseenter: function() {
  48. // Handle mouseenter...
  49. },
  50. mouseleave: function() {
  51. // Handle mouseleave...
  52. },
  53. 'click blur paste' : function() {
  54. // Handle click...
  55. }
  56. }, "input");
  57.  
  58. function showPhotos() {
  59. $(this).find("span").slideToggle();
  60. }
  61.  
  62. $(".photos")
  63. .on("mouseenter", "li", showPhotos)
  64. .on("mouseleave", "li", showPhotos);
  65.  
  66. $("textarea[id^='options_'],input[id^='options_']").on('keyup onmouseout keydown keypress blur change',
  67. function() {
  68.  
  69. }
  70. );
  71.  
  72. $('input').on('keyup blur focus', function () {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement