Menu icon Foundation

My Posts


My Comments

Effe commented on Effe's post almost 6 years

I tried this, does not work (where the name of the form is 'create')
Javascript
$('create').on('valid', function() {
var formdata = $('create').serializeArray();
var url = $('RecordController').attr('postNew');
$.post(url, {formdata}, function(data) {
console.log(data);
}, 'json');
});

Posts Followed


Following

    No Content

Followers

My Posts

My Comments

You commented on Effe's post almost 6 years

I tried this, does not work (where the name of the form is 'create')
Javascript
$('create').on('valid', function() {
var formdata = $('create').serializeArray();
var url = $('RecordController').attr('postNew');
$.post(url, {formdata}, function(data) {
console.log(data);
}, 'json');
});

Posts Followed

Following

  • No Content

Followers

  • No Content