diff --git a/docs/javascript.html b/docs/javascript.html index e1d679d3f4..ad4cb55dd3 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -357,6 +357,27 @@ $('#my-modal').bind('hidden', function () { }) </script>

+

Events

+ + + + + + + + + + + + + +
EventDescription
changeThis event fires on tab change. Use event.target and event.relatedTarget to target the active tab and the previous active tab respectively.
+ +
+$('#.tabs').bind('change', function (e) {
+  e.target // activated tab
+  e.relatedTarget // previous tab
+})

Demo