update function call from attr to prop

This commit is contained in:
Vivek Santayana 2021-12-08 13:20:40 +00:00
parent 587415c5db
commit b9c4edeb48

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({