Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Oct 11th, 2018 58 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. $('#button').on('click', function() {
  2.      var comment = $('.message-box').val();
  3.      var prefix = "Thank you, "
  4.      var suffix = ". We have received your message!"
  5.      var name = $('.text-box1').val();
  6.      $('#visible-comment').html(prefix+name+suffix);
  7.      if (comment === "") {
  8.          $("#message-box").css("border", "2px solid red");
  9.      } else {
  10.          $('.text-box1').hide();
  11.          $('.text-box2').hide();
  12.          $('.phone-box').hide();
  13.          $('.email-box').hide();
  14.          $('.message-box').hide();
  15.     }
  16.      return false;
  17.    });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top