bootstrap jquery show.bs.modal event won't fire

前端 未结 19 2412
小蘑菇
小蘑菇 2020-11-28 07:29

i\'m using the modal example from the bootstrap 3 docs. the modal works. however i need to access the show.bs.modal event when it fires. for now i\'m just trying:



        
19条回答
  •  死守一世寂寞
    2020-11-28 07:56

    Had the same issue. For me it was that i loaded jquery twice in this order:

    1. Loaded jQuery
    2. Loaded Bootstrap
    3. Loaded jQuery again

    When jQuery was loaded the second time it somehow broke the references to bootstrap and the modal opened but the on('shown.bs..') method never fired.

提交回复
热议问题