How to create sliding feedback form using jQuery


In this tutorial we are going to learn how to create fancy looking feedback form Using jQuery And Bootstrap which slides from the right/left side of your web page. I am sure there are many plugins available for CMS like Joomla, WordPress but it’s always a good idea to code something of your own. Certainly, you require this code when you are developing everything at your own and not using any kind of CMS. So let’s see how it actually works!


feedback.js is a really small jQuery plugin used to create a feedback tab on the left side of the screen that will slide out a contact form when toggled.

How to use it:

Load Bootstrap’s style sheet and the feedback.css in the header of the document.

<link rel="stylesheet" href="">
<link rel="stylesheet" href="feedback.css">

Load jQuery library and the feedback.js at the end of the document.

<script src="//"></script>
<script src="feedback.js"></script>

Create a contact form with a feedback tab on the webpage.

<div id="feedback">

    <div id="feedback-form" style='display:none;' class="col-xs-4 col-md-4 panel panel-default">

      <form method="POST" action="" class="form panel-body" role="form">

        <div class="form-group">

          <input class="form-control" name="email" autofocus placeholder="Your e-mail" type="email" />


        <div class="form-group">

          <textarea class="form-control" name="body" required placeholder="Please write your feedback here..." rows="5"></textarea>


        <button class="btn btn-primary pull-right" type="submit">Send</button>


    <div id="feedback-tab">Feedback</div>


Modify or override the following CSS snippets to create your own styles. (feedback.css)

#feedback {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 250px;
  margin-left: -3px;
  margin-bottom: -3px;

#feedback-form {
  float: left;
  width: 300px;
  height: 100%;
  z-index: 1000;
  padding-left: 5px;
  padding-right: 10px;
  background-clip: 'padding-box';
  border: 1px solid rgba(0,0,0,.2);
  -moz-border-radius: 0px;
  -webkit-border-radius: 0px;
  border-radius: 0px;
  -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
  -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
  box-shadow: 0 5px 10px rgba(0,0,0,.2);

#feedback-tab {
  float: right;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  text-align: center;
  width: 120px;
  height: 42px;
  background-color: rgba(0,0,0,0.5);
  margin-top: 60px;
  margin-left: -42px;
  padding-top: 5px;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  -o-transform: rotate(90deg);
  transform: rotate(90deg);

#feedback-tab:hover { background-color: rgba(0,0,0,0.4); }

#feedback-form textarea { resize: none; }


$(function() {
  $("#feedback-tab").click(function() {

  $("#feedback-form form").on('submit', function(event) {
    var $form = $(this);
      type: $form.attr('method'),
      url: $form.attr('action'),
      data: $form.serialize(),
      success: function() {


Please follow and like us:

By Rodney

I’m Rodney D Clary, a web developer. If you want to start a project and do a quick launch,I am available for freelance work.

Leave a Reply