daily pastebin goal
63%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <span class="dropdown">
  2.   <a class="btn btn-mini btn-info dropdown-toggle insert-gallery" id="dLabel" role="button" data-media-id="50" data-toggle="dropdown" href="#">
  3.     Add To Gallery
  4.     <b class="caret"></b>
  5.   </a>
  6.   <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel"></ul>
  7. </span>
  8.  
  9. $('.insert-gallery').on('click', function(){
  10.   var media_id = $(this).data('media-id');
  11.   console.log(media_id);
  12.   console.log('click');
  13. });
  14.    
  15. $(document).on("click", ".dropdown-toggle", function(event) {
  16.   // Ajax actions here
  17.   $(this).attr("data-toggle", "dropdown").click();
  18. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top