I'm trying to get tabs working on my app, and following the Bootstrap docs to set them up results in an error: Uncaught TypeError: Object [object Object] has no method 'tab' . I have a JSFiddle of the problem code: Not Working Fiddle
A little more info, which could be relevant: my app, built using Symfony, is compiling Bootstrap with Less, hence needing to use my own Bootstrap resources for the Fiddle example. There could be a problem with the compiling that's causing this, but I do see the Tab javascript code in there...
The HTML:
<div class="container">
<div class="row">
<ul id="campaignTabs" class="nav nav-tabs">
<li class="active"><a href="#tasks" data-toggle="tab">Tasks</a></li>
<li><a href="#schedule" data-toggle="tab">Schedule</a></li>
<li><a href="#upgrade" data-toggle="tab">Upgrade</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane fade in active" id="tasks">
Tab 1
</div>
<div class="tab-pane fade" id="schedule">
Tab 2
</div>
<div class="tab-pane fade" id="upgrade">
Tab 3
</div>
</div>
</div>
</div>
The JS:
$('#campaignTabs a').click(function (e) {
e.preventDefault();
$(this).tab('show');
});
Any help would be appreciated!
EDIT: My original link was accidentally using links to local resources, so naturally that wasn't working! I updated to using resources from Dropbox, so hopefully those are working now.
