I'm using bootstrap collapse without the accordion markup.
This function is working fine in FF, Chrome etc. In ie7, 8 & 9 it works, but only the second time I click on 'trigger'.
$('.trigger').click(function(e){
e.preventDefault();
$(this).closest('.item').find('.item-dropdown').collapse('toggle');
});
Any ideas why?
I'm using bootstrap collapse without the accordion markup.
This function is working fine in FF, Chrome etc. In ie7, 8 & 9 it works, but only the second time I click on 'trigger'.
$('.trigger').click(function(e){
e.preventDefault();
$(this).closest('.item').find('.item-dropdown').collapse('toggle');
});
Any ideas why?
Share Improve this question asked Mar 21, 2013 at 3:15 Nicole HarrisNicole Harris 8601 gold badge13 silver badges27 bronze badges 01 Answer
Reset to default 7Found this SO question:
Bootstrap 2.1.1 "Collapsible" not opening first time in IE
"This problem is not related to IE : this will happen on any browser that doesn't support transitions (or if it is deactivated).
That's because you need to initialize the plugin first. If you don't, it both initializes and toggles the collapse on the first click : the default initialization toggles the collapse (doc), and without the transitions, the collapse is toggled twice in a row without being seen."