I'm having trouble finding a clicked anchor element in a collapse event using Bootstrap 3.3.4 .:
$('.collapse').on('show.bs.collapse', function (e) {
I need this because I would like to prevent collapsing if the clicked element has a specific data attribute. Another option is to connect using .on('click', function()) , however there are other events that occur when clicked that need to be triggered, so this seems bad to me. A search in the DOM for the nearest anchor or something similar will not work, since there are several anchors next to eachother.
jquery twitter-bootstrap twitter-bootstrap-3
Propaganistas
source share