'use strict';
console.log('\'Allo \'Allo!');
$(function() {
$('form').on('submit', function() {
event.preventDefault();
// Display a spinner
$('.interest').html('
');
// Save and load
$.post(
'http://alumni.studentersamfundet.no/async.php',
{
name: $('#name').val(),
email: $('#email').val(),
division: $('#division').val(),
years: $('#years').val()
},
function(data){
console.log('Successfully posted sumtin.');
console.log(data);
$('.interest').html('Takk
').append(data);
}
);
});
});