javascript - Tab "shown" event not firing - Twitter Bootstrap -
When a tab changes, I'm trying to fire an AJAX call. However, I may not even want to do this basic test work:
& lt; Ul class = "nav nav-tabs" & gt; & Lt; li class = "" & gt; & Lt; A data-toggle = "tab" href = "# gqs-uploader" id = "gqs-uploader-btn" & gt; Uploads & lt; / A & gt; & Lt; / li & gt; & Lt; Li class = "active" & gt; & Lt; Data-toggle = "tab" href = "# gqs-results" id = "gqs-results-btn" & gt; Results & lt; / A & gt; & Lt; / li & gt; & Lt; li class = "" & gt; & Lt; Data-toggle = "tab" href = "# gqs-download" id = "gqs-download-btn" & gt; Download & lt; / A & gt; & Lt; / li & gt; & Lt; / Ul & gt; and javascript:
(function ($) {"strict use"; $ (function () {$ (document) .on ('shown' Has been done, a [data-toggle = "tab"] ', function (e) {alert (' tab changelog ');})}}}}} (jQuery)); When a tab changes, then I should send a warning
Why is this simple example not working? The original example in the docs is either Does not work. The whole event (even the button click) seems invisible - I want it any
$ (document) ) .on ('shown.bs.tab', 'a [data-toggle =' tab]], function (e) {alert ('tab changed');})
Comments
Post a Comment