Serialize form as json
This commit is contained in:
parent
afb57a17ff
commit
04bc783c09
@ -77,9 +77,9 @@ function attach() {
|
||||
console.log("Preventing");
|
||||
e.preventDefault();
|
||||
// Form serialization
|
||||
let form = $(this).serialize();
|
||||
// let form = $(this).serialize();
|
||||
// JSON serialization
|
||||
// let form = $(this)
|
||||
let form = JSON.stringify($(this).serializeArray());
|
||||
let event = submitElems[i].getAttribute('rust-submit');
|
||||
send_event(SUBMIT_EVENT, event, form);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user