How to display an Alert in Bootstrap Modal

前端 未结 2 1613
囚心锁ツ
囚心锁ツ 2020-12-29 10:36

$(window).load(         


        
2条回答
  •  旧巷少年郎
    2020-12-29 10:58

    Create the error div in modal body. and set error

    $(document).ready(function(){
      $('#alertbox').click(function(){
        $("#error").html("You Clicked on Click here Button");
          $('#myModal').modal("show");
        });
      });
    
    
    
      Bootstrap Example
      
      
      
      
      
    
    
    
    

    Modal Example

提交回复
热议问题