Asked 30+ days ago
25 Nov 2017
Views 150

shabi posted

how to put iframe in modal box in boostrap ?

how to put iframe in modal box in boostrap ?
Mitul Dabhi

Mitul Dabhi
answered Feb 21 '18 20:17

script type="text/javascript">
    var frameSrc = "";
  var frameSrc = $(this).attr("data");
     $('#myModal').on('show', function () {

<a href="javascript:;"  data="" class="activity">See Activity</a>
<div class="modal fade" id="myModal" " tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" style="width: 950px;height:400px" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      <div class="modal-body">
              <iframe src="" width="100%"  height="100%" ></iframe>

      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
Edit Answer
Post Answer