Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* submit button */
- $(function () {
- $('form').on('submit', function (e) {
- $.ajax(
- {
- url:'/submitData',
- data: $('form').serialize(),
- type: 'POST',
- success: function (response) {
- console.log(response);
- },
- error: function (error){
- console.log(error)
- }
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement