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;
}

h1,
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; }


input{
width:100%;
height:40px;
border:1px solid green;
padding:8px;
}

select
{
width:104%;
height:40px;
border:1px solid green;
padding:8px;
padding-top: 0px;
padding-bottom: 0px;
}

textarea
{
width:100%;
height:80px;
border:1px solid green;
padding:8px;
}
.enq-div{
width:300px;
padding:35px;
border:1px solid green;
background-color:#f1f1f1;
display:block;
margin:0 auto;
}

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


Html code for responsive popup box with feedback form:

<body>
<div id="container">
<h1>jQuery Responsive popup box with feedback form</h1>
</div>
</div>
<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>
</select></p>
<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>
</div>
<h5><a href="http://www.sanwebcorner.com">www.sanwebcorner.com</a></h5>
</form>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> 
<script src="jquery.firstVisitPopup.js"></script> 
<script>
$(function () {
$('#pop-up-content').firstVisitPopup({
cookieName : 'homepage',
showAgainSelector: '#show-message'
});
});
</script>
</body>

Post a Comment

Labels

360 degree view product image 3d rotate 3d text 3step-form Accordion menu ajax All Browsers Animated Background Gradient animation audio controller auto complete Best accordion menu bootstrap border bounce effect on hover Breadcrumb calculate age by dob calendar Captcha change image on mouse move color chooser countdown Counter on scroll create random number Css css animation css buttons css hover css3 customized upload Button Date picker delete data from table Different scroll speed email otp verification email verifier Embed eventlist Expanding Menu feedbck form flash news section close button full screen menu Google custom search Google Maps Google reCAPTCHA Google site search gradient hide menu Horizontal News ticker Hover Htm Html html dropdown html form html5 html5 form validation Iframe image hover increment decrement textbox value based on select box Javascript Jquery js Layered image effect on mouse hover lock & unlock page scroll marquee marquee with close button mobile number validation mobile otp login Multi-level-drop-down-menu multi-level-form Multi-Step-form mysql News ticker on hover change text to image our team page password generator password strength checker Photoshop PHP populate html selectbox Popup image on click the link pure css Question type form random number generate Random password Redirect page Based on the select box while submit the form responsive responsive menu responsive popup box Responsive Vertical Time line design rotate image selectbox based on select box simple coming soon page simple countdown based on end date simple typing effect slider sliding tab sms otp login statistic counter on scroll switch tag shape team member Time picker toggle toggle view transparent button underline animation up down slide validation vertical fixed sidebar Webtips Youtube