Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function () {
- $('#sendDataFromCalc').on('click',
- function (event) {
- event.preventDefault();
- sendForm();
- });
- function sendForm() {
- var data = $('#formForCalculator').serializeArray();
- $.post('/calculator/submit.php', data, function(data, status) {
- if( status == 'success' ){
- alert('Данные успешно отправлены!');
- }else{
- alert('В процессе отправки произошла ошибка :(')
- }
- })
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement