diff --git a/js/tab.js b/js/tab.js
index e1c155920f..10dc7e99bc 100644
--- a/js/tab.js
+++ b/js/tab.js
@@ -30,7 +30,7 @@
   Tab.prototype.show = function () {
     var $this    = this.element
     var $ul      = $this.closest('ul:not(.dropdown-menu)')
-    var selector = $this.attr('data-target')
+    var selector = $this.data('target')
 
     if (!selector) {
       selector = $this.attr('href')