Advertisement
Lauda

Untitled

Jun 29th, 2014
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $('#reg_btn1').on('click', function(e) {
  2.    
  3.     var objectArray = $("#register-form :input").serializeArray();
  4.     var data = {};
  5.     var data = JSON.stringify(objectArray);
  6.    
  7.     data = "reg=" + data;
  8.     alert(data);
  9.    
  10.      $.ajax({
  11.          type: "POST",
  12.          url: "RegisterServlet",
  13.          data: data,
  14.          dataType: "json",
  15.          success: alert("is k")
  16.      });
  17.    
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement