From b1ce91429579b8a1b0446b22c9a581cbf3fbff24 Mon Sep 17 00:00:00 2001 From: okendoken Date: Sun, 24 Aug 2014 01:23:58 +0300 Subject: [PATCH] docs update --- readme.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/readme.md b/readme.md index 231f877..13fb2f9 100644 --- a/readme.md +++ b/readme.md @@ -61,6 +61,13 @@ To attach event handler just call: alert('accordion is shown now!'); }); +Attach an event handler when **either** tab or collapse is opened: +------------ + + $(document).on("shown.bs.collapse shown.bs.tab", ".panel-collapse, a[data-toggle='tab']", function (e) { + alert('either tab or collapse opened - check arguments to distinguish ' + e); + }); + Contributors ------------