HOW TO USE BOOTSTRAP MODEL POPUP

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
 807  View(s)
Ratings:
Rate this:
i want use bootstrap model popup please help me
  1. aditya kumar Patel

    Post:254

    Points:1810
    Re: How to use bootstrap model popup

    The Bootstrap Modal is a lightweight multi-purpose JavaScript popup that is customizable and responsive. It can be used to display alert popups, videos, and images in a website. 

    <link href="~/Content/bootstrap.css" rel="stylesheet" />

           <script src="~/Scripts/jquery-2.1.4.js"></script>

    <script src="~/Scripts/bootstrap.min.js"></script>

    <div class="modal fade" id="modelpopup" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">

        <div class="modal-dialog modal-sm" role="document">

            <div class="modal-content" id="model-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">Information</h4>

                </div>

                <div class="modal-body">

                    <strong>Are you sure you want to delete this record!</strong>

                </div>

                <div class="modal-footer">

                    <a class="btn btn-warning DeleleConfirm" href="">Yes</a>

                    <button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>

                </div>

            </div>

        </div>

    </div>

     

     

           <script>

             $('#modelpopup).modal('show');

    </script>

     

      Modified On Nov-01-2015 11:15:44 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!