Bootstrap dropdown not working after initial ajax form submission

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

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

  
  

        
4条回答
  •  猫巷女王i
    2020-12-17 03:32

    So I'm not sure why this works, but it has so far:

    I've modified my ajax call to reload bootstrap's .js file prior to executing the return.

    function reload_js(src) {
        $('script[src="' + src + '"]').remove();
        $('
      
    

    I've also tried loading it in one, but not the other (so I don't load it twice,) and that doesn't do anything.

    c.) Why does this work? What is it doing?

提交回复
热议问题