Bootstrap $('#myModal').modal('show') is not working

后端 未结 15 2157
深忆病人
深忆病人 2020-12-03 13:50

I\'m not sure why but all the modal functions are not working with me. I checked the version and the load they are fine.

I keep getting this error message:

15条回答
  •  一生所求
    2020-12-03 14:22

    I got same issue while working with Modal Popup Bootstrap , I used Id and trigger click event for showing and hidding modal popup instead of $("#Id").modal('show') and $("#id").modal('hide'), `

        
    Select
        $('#btnPurchaseClose').trigger('click');// for close popup
    
         $('#btnOpenPurchase').trigger('click');`// for open popup
    

提交回复
热议问题