SHOW:
|
|
- or go back to the newest paste.
1 | $('button[id="signup"]').click(function(){ | |
2 | var serializedData = $('form[id="signup"]').serializeObject(); | |
3 | ||
4 | alert(serializedData); | |
5 | ||
6 | $.ajax({ | |
7 | type: 'POST', | |
8 | url: 'php/test.php', | |
9 | data: serializedData, | |
10 | success: function(data) { | |
11 | - | console.log('success', data); |
11 | + | $("#response").html(data)('success', data); |
12 | } | |
13 | }); | |
14 | }); |