I'm trying to get the caller element
from inside of an event listener function of jQuery
using Bootstrap3
.
Code:
jQuery(MoreOptionsCollapse).on('show.bs.collapse', function(event){
console.log(this, event, event.target);
});
The problem is that this
and event.target
are the MoreOptionsCollapse
element and what I want is the button that triggered the show.bs.collapse
event.
Any help would be appreciated c: