Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 22  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Submitting Ajax Form With SimpleModal (jQuery)
  2. <div id="address_form" style="display:none">
  3.   <div id="contact-area">
  4.     <form id="address_form" action="submit" method="POST">
  5.       <label for="Street">Street:</label>
  6.       <input type="text" name="Street" id="street" />
  7.       <input type="submit" name="submit" class="submit-button" />
  8.     </form>
  9.   </div>
  10. </div>
  11.  
  12. $("#address_form").submit(function(){
  13.   var data = $(this).serialize();
  14.   alert(data)
  15.   return false;
  16. });