jQuery Responsive popup box with feedback form | Sanwebcorner

jQuery Responsive popup box with feedback form

Here we can see how to create Jquery responsive popup box with feedback form. I already posted the popup box with feedback form. But in this post i will give you the code about how to display the responsive popupbox with feedback form.( or you can use contact form) or any type of form you can use in this popupbox. This responsive popup box will display on page load.

Here we write the styles (css) responsive manner. It will fit all the devices like mobile and tab, desktop, laptop. Here is the full html, css, jquery code you can view the code below. And i will  provide the full code here. To download full code please click the below download link. In this example have the responsive code you can see this example by clicking the demo link. You can see the result of this page. I hope this is very useful.

Style sheet for responsive pop-up box:

body { margin-top: 0; }

#container {
  max-width: 1000px;
  margin: 0 auto;
  background: #EEE;

p {     padding: 0em 2em;}

#fvpp-blackout {
  display: none;
  z-index: 499;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #000;
  opacity: 0.5;

#pop-up-content {
  display: none;
  z-index: 500;
  position: fixed;
  width: 36%;
  left: 30%;
  top: 20%;
  padding: 20px 2%;
  font-family: Calibri, Arial, sans-serif;
  background: #FFF;

#fvpp-close {
    position: absolute;
    top: -16px;
    right: -10px;
    font-size: 23px;
    cursor: pointer;
    font-weight: bold;
    color: #FFF;
    background-color: #000;
    padding: 1px 9px;
    border-radius: 34px;

#fvpp-dialog h2 {
  font-size: 2em;
  margin: 0;

#fvpp-dialog p { margin: 0; }

border:1px solid green;

border:1px solid green;
padding-top: 0px;
padding-bottom: 0px;

border:1px solid green;
border:1px solid green;
margin:0 auto;

width: 50% !important;
    background-color: green;
    color: #fff;
    height: 50px;
    margin: 0 auto;
    display: block;

Html code for responsive popup box with feedback form:

<div id="container">
<h1>jQuery Responsive popup box with feedback form</h1>
<div id="pop-up-content">
<form id="contact-form1" class="contact-form flex-type" action="mail1.php" method="post">
<p><input type="text" name="name"  required placeholder="Your Name (required)"></p>
<p><select name="enquiry-abt">
<option name="Enquiry About Admission" value="Enquiry About Admission" >Enquiry About Admission</option>
<option name="Enquiry About Fees" value="Enquiry About Fees" >Enquiry About Fees</option>
<option name="Others" value="Others" >Others</option>
<p><input type="email" name="email" required placeholder="Email (required)"></p>
<p><input type="text" name="subject" required placeholder="Subject"></p>
<p><input type="Mobile" name="mobile" required placeholder="Mobile Number"></p>
<p><textarea rows="8" name="message" required placeholder="Message"></textarea></p>
<p><input type="submit" name="submit" required value="submit" class="btn" data-type="submit"></button></p>
<h5><a href="http://www.sanwebcorner.com">www.sanwebcorner.com</a></h5>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 
<script src="jquery.firstVisitPopup.js"></script> 
$(function () {
cookieName : 'homepage',
showAgainSelector: '#show-message'