How to open a popup on click a button using jquery


To open pop-up on click a button or “a” tag use just below code and change css as per your requirements

<script type="text/javascript" src=""></script>
<script src="" type="text/javascript"></script>
<link href=""
 rel="stylesheet" type="text/css" />
<script type="text/javascript">
 $(function () {
 modal: true,
 autoOpen: false,
 title: "jQuery PopUp",
 width: 300,
 height: 150
 $("#adlive").click(function () {
<input type="button" id="adlive" value="Show Popup" />
<div id="popup" style="display: none" align = "center">
 This is a jQuery popup.
<input type="text" name="name" placeholder="Enter your name"/>
<input type="submit" name="submit">

Do you like my posts? Please let me know by dropping your valuable comments, also if you have any questions, please let’s know.