Twitter bootstrap modal external urls are not working

前端 未结 3 1099
[愿得一人]
[愿得一人] 2020-12-14 12:10

Twitter bootstrap modal doesn\'t load external urls inside modal.

Sample Code : jsFiddle



        
3条回答
  •  不思量自难忘°
    2020-12-14 12:59

    This snippet helps in fetching the modal content via Ajax:

    $.get(href, function(response) {
         $("#myModal .modal-content").html(response);
    });
    

    Keep in mind, that the HTML response fetched, must containg the dom-elements normally present inside the "modal-content" element:

     
     
     
    

提交回复
热议问题