javascript - Bootstrap modal new page -
i want make modal in if click button modal pops , content of modal different page. please me.
this code
<a href="#" class="btn btn-lg btn-success" data-toggle="modal" data-target="#basicmodal">click open modal</a> <div class="modal fade" id="basicmodal" tabindex="-1" role="dialog" aria-labelledby="basicmodal" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="mymodallabel">basic modal</h4> </div> <div class="modal-body"> <h3>modal body</h3> </div> <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> </div> </div> </div> </div>
i want know javascript? , should put it? i'm using bootstrap v 3.03 way.
i think this is you're looking for.
need pay special attention line in particular:
<a data-toggle="modal" class="btn btn-info" href="remote.html" data-target="#mymodal">click me !</a>
Comments
Post a Comment