update function call from attr to prop

This commit is contained in:
Vivek Santayana 2021-12-08 13:20:40 +00:00
parent c5a0bbb827
commit 08da6d71c4

View File

@ -18,7 +18,7 @@ $('form.form-post').submit(function(event) {
var $form = $(this); var $form = $(this);
var data = $form.serialize(); var data = $form.serialize();
var url = $(this).attr('action'); var url = $(this).prop('action');
var rel_success = $(this).data('rel-success'); var rel_success = $(this).data('rel-success');
$.ajax({ $.ajax({