How to call bootstrap modal in php

后端 未结 1 1127
陌清茗
陌清茗 2021-01-13 17:59

I\'m trying to call a modal that I have in a html file which is hidden alongside another modal. One of them appears as the button is clicked but the other one is to be calle

相关标签:
1条回答
  • 2021-01-13 18:49

    Try this:

    echo "<script type='text/javascript'>
    $(document).ready(function(){
    $('#myAdvert').modal('show');
    });
    </script>";
    
    0 讨论(0)
提交回复
热议问题