You can either create an Ajax request, or successfully redirect the page or submit the form as in the old days.
If you can change the HTML than wrap the form inputs with the action set in processEditBookSeat.php and set the ID for it, for example, "bookSeatForm", so itβs easier to find it in the js-side.
Then change the script like this:
$(".confirm").easyedit(); $("#alert").click(function() { $("#bookSeatForm").submit() });
Also, if this method suits you, why not use the default form behavior and change the #alert element to submit input? It depends on you.
source share