Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#reg_btn1').on('click', function(e) {
- var objectArray = $("#register-form :input").serializeArray();
- var data = {};
- var data = JSON.stringify(objectArray);
- data = "reg=" + data;
- alert(data);
- $.ajax({
- type: "POST",
- url: "RegisterServlet",
- data: data,
- dataType: "json",
- success: alert("is k")
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement