Guest User

Untitled

a guest
Jan 18th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. <div class="btn-group">
  2. <button type="button" class="btn btn-default 1">1</button>
  3. <button type="button" class="btn btn-default 3">3</button>
  4. </div>
  5.  
  6. <div class="grid-item grid-item-double-height item-1" data-button-type="interior">
  7. <a href="#">
  8. <img src="img/lazyload-ph.png" data-src="img/slurp-004.jpg" class="img-responsive lazyload"/>
  9. </a>
  10. </div>
  11.  
  12. $(".btn-group").on('click', 'button', function(e) {
  13. var push = $(this).data("button-type");
  14. alert(push);
  15. });
  16.  
  17. $(".btn-group").on('click', function(e) {
  18. var push = $(this).data("button-type");
  19. alert(push);
  20. });
  21.  
  22. $(".btn-group").on('click', 'button', function(e) {
  23. var push = $(this).attr("data-button-type");
  24. alert(push);
  25. });
  26.  
  27. $("buttn").on('click', function(e) {
  28. var push = $(this).data("button-type");
  29. alert(push);
  30. });
  31.  
  32. $(".btn").on('click', function(e) {
  33. var push = $(this).data("button-type");
  34. alert(push);
  35. });
  36.  
  37. function(e) {
  38.  
  39. function() {
Add Comment
Please, Sign In to add comment