Join WhatsApp ChannelJoin Now

Jquery Modal Popup Example

Hello Dev,

Today, i we will show you jquery ui modal popup example. This article will give you simple example of jquery ui modal popup example. you will learn jquery ui modal popup example. So let’s follow few step to create example of jquery ui modal popup example.

Example:-

<html lang="en">
<head>
    <title>jquery modal popup Example</title>  
    <link rel="stylesheet" href="https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <style type="text/css">
    #dialog{
        display: none;
    }
    </style>
</head>
<body>

<button>Click To Open Popup</button>

<div id="dialog" title="Codeplaners.com">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
  quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
  consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
  cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
  proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
</div>

<script type="text/javascript">
    $("button").click(function(){
        $( "#dialog" ).dialog();
    });
</script>

</body>
</html>

Recommended Posts