diff --git a/js/tab.js b/js/tab.js index 990c25be5..4f9ad9ff9 100644 --- a/js/tab.js +++ b/js/tab.js @@ -48,7 +48,7 @@ if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return - var $target = $(selector) + var $target = $(document).find(selector) this.activate($this.closest('li'), $ul) this.activate($target, $target.parent(), function () {