Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap's dropdown with Datatables not working

Can you please help me i have Bootstrap`s dropdown button to end of Datatable but when i clicked on it it is not working menu is not shown

<div class="btn-group dropdown">
        <button class="btn btn-default dropdown-toggle" aria-haspopup="true" aria-expanded="false">Action <span class="caret"></span></button>
        <ul class="dropdown-menu">
          <li><a href="">Edit</a></li>
          <li><a href="">Delete</a></li>
          <li class="divider"></li>
          <li><a href="">Separated link</a></li>
        </ul>
</div>

enter image description here

like image 820
Naumche Ivanovski Avatar asked Oct 02 '14 07:10

Naumche Ivanovski


1 Answers

I added

$('body .dropdown-toggle').dropdown(); 

And works for me.

like image 138
Martin Varta Avatar answered Sep 19 '22 14:09

Martin Varta