Bootstrap dropdown not working after initial ajax form submission

前端 未结 4 496
野的像风
野的像风 2020-12-17 02:47

I have a dropdown on my page, manager.php, here. Sorry for the formatting - bootstrap.:

  
  

        
4条回答
  •  南方客
    南方客 (楼主)
    2020-12-17 03:49

    you can't initialize the bootstrap component after page load by adding bootstrap clasaes. To do this you have to initialize it by your self

    To initialize a dropdown write this code

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

    after

      $('#everything').html(data);
    

    for more details: http://getbootstrap.com/javascript/#dropdowns

提交回复
热议问题