Bootstrap dropdown not working after initial ajax form submission

前端 未结 4 488
野的像风
野的像风 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:48

    page will load DOM 1st time. ajax just update a part of page, so new elements you add wont have prop you defined. you need to reinit as you did or make something like this

    http://hussain.io/2012/01/reinitializing-jquery-event-on-ajax-response/

提交回复
热议问题