160
rated 0 times
[
161]
[
1]
/ answers: 1 / hits: 16500
/ 12 Years ago, mon, april 2, 2012, 12:00:00
I am using Twiter Bootstrap Tabs on my page. I want to dynamically add tabs in the view. Currently I am using this code, which is not working
$('#tab').append('<li><a href=#tabname data-toggle=tab>Tab Name</a></li>');
$('#myTabContent').append('<div class=tab-pane fade in active id=tabname><p>tab content</p></div>');
$('#tab a:last').tab('show');
Can Any body tell me what I am missing?
More From » twitter-bootstrap