Twitter Bootstrap tabs not working: when I click on them nothing happens

前端 未结 13 1073
温柔的废话
温柔的废话 2020-12-04 10:49

I am trying to implement Twitter Bootstrap tabs in the following code, but it does not seem to work. The tabs get displayed, but when I click on them nothing happens. Below

相关标签:
13条回答
  • 2020-12-04 11:47

    Actually, there is another easy way to do it. It works for me but I'm not sure for you guys. The key thing here, is just adding the FADE in each (tab-pane) and it will works. Besides, you don't even need to script function or whatever version of jQuery. Here is my code...hope it will works for you all.

    <div class="tab-pane fade" id="Customer">
        <table class="table table-hover table-bordered">
            <tr>
                <th width="40%">Contact Person</th>
                <td><?php echo $event['Event']['e_contact_person']; ?></td>
            </tr>
        </table>
    </div>
    <div class="tab-pane fade" id="Delivery">
        <table class="table table-hover table-bordered">
            <tr>
                <th width="40%">Time Arrive Warehouse Start</th>
                <td><?php echo $event['Event']['e_time_arrive_WH_start']; ?></td>
            </tr>
        </table>
    </div>
    
    0 讨论(0)
提交回复
热议问题