mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 16:21:20 +00:00
Create handler for form submit
This commit is contained in:
parent
982f72b4ba
commit
5a295de426
@ -11,7 +11,17 @@ $('#container').on('click', '.anchor', ( function (event) {
|
||||
console.log(data);
|
||||
ws.send(data);
|
||||
}));
|
||||
|
||||
$('form#anchor_login_event').on('submit', (function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
let anchorName = $(this).attr('id').replace('_event', '');
|
||||
$.post(
|
||||
$(this).attr('action'),
|
||||
$(this).serialize(),
|
||||
function (data) {}
|
||||
);
|
||||
}));
|
||||
}));
|
||||
|
||||
ws.onmessage = function (messageEvent) {
|
||||
|
Loading…
Reference in New Issue
Block a user