How to open Bootstrap modal popup

Total Post:119

 2450  View(s)
Rate this:
i'm want to open bootstrap modal popup smoothly
  1. Post:194

    Re: How to open Bootstrap modal popup

    Hi goti Bandu

    i'm try to make bootstrap modal popup so firstly use three files

    <link href="~/Content/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" />
    <script src="~/script/jquery-2.1.0.min.js"></script>
    <script src="~/script/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>
    html code here:
    <div class="container">
        <br />
        <br />
        <button class="btn btn-primary" id="launchmodal" data-toggle="modal" data-target="#myModal">
            Launch demo modal
    <!-- Modal -->
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                    <h4 class="modal-title" id="myModalLabel">Modal title</h4>
                <div class="modal-body">
                <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>

    javascript code:

        $(document).ready(function () {
            $('#launchmodal').click(function () {
                    keyboard: false

      Modified On Apr-05-2018 06:25:41 AM


Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.