Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function save()
- {
- console.log(save);
- console.log($('#form').serialize());
- var url;
- // ajax adding data to database
- $.ajax({
- url: "<?php echo site_url('Data/sendmails') ?>",
- type: "POST",
- data: $('#form').serialize(),
- dataType: "JSON",
- success: function (d) {
- console.log('succ');
- console.log(d);
- },
- error: function (xhr, stat, err) {
- console.log('error');
- console.log(xhr, stat, err);
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement