Disable ajax post temporarily


I need to disable the Ajax post function of a form temporarily and let
it be a non-Ajax form with a altered action. I also need to turn it back

It’s quite easy to change the form’s action and remove the attribute
“data-remote”, but it doesn’t make sense as it is already binded.

Thanks to all response!