Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.88 KB | None | 0 0
  1.  
  2.  
  3. <title>..::Contato::..</title>
  4.  
  5. // <![CDATA[
  6. jQuery(document).ready(function(){
  7.     $('#contactform').submit(function(){                 
  8.         var action = $(this).attr('action');
  9.         $.post(action, {
  10.             name: $('#name').val(),
  11.             email: $('#email').val(),
  12.             company: $('#company').val(),
  13.             subject: $('#subject').val(),
  14.             message: $('#message').val()
  15.         },
  16.             function(data){
  17.                 $('#contactform #submit').attr('disabled','');
  18.                 $('.response').remove();
  19.                 $('#contactform').before('<p class="response">'+data+'</p>');
  20.                 $('.response').slideDown();
  21.                 if(data=='Message sent!') $('#contactform').slideUp();
  22.             }
  23.         );
  24.         return false;
  25.     });
  26. });
  27. // ]]>
  28. </script>
  29. </head>
  30. <body>
  31. <form action="contact.php" method="post" id="contactform">
  32.           <ol>
  33.             <li>
  34.               <label for="name">Primeiro Nome <span class="red">*</span></label>
  35.               <input id="name" name="name" class="text" />
  36.             </li>
  37.             <li>
  38.               <label for="email">Seu Email <span class="red">*</span></label>
  39.               <input id="email" name="email" class="text" />
  40.             </li>
  41.             <li>
  42.               <label for="company">Academia</label>
  43.               <input id="company" name="company" class="text" />
  44.             </li>
  45.             <li>
  46.               <label for="subject">Assunto</label>
  47.               <input id="subject" name="subject" class="text" />
  48.             </li>
  49.             <li>
  50.               <label for="message">Mensagem <span class="red">*</span></label>
  51.               <textarea id="message" name="message" rows="6" cols="50">Deixe sua mensagem...</textarea>
  52.             </li>
  53.             <li class="buttons">
  54.               <input type="image" name="imageField" id="imageField" src="images/send.gif" class="send" />
  55.               <div class="clr"></div>
  56.             </li>
  57.           </ol>
  58.         </form>
  59.      
  60. </body>
  61. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement