[jQuery] Changing the Action or method of a form befor submitting

[jQuery] Changing the Action or method of a form befor submitting


Is it possible to change the action or method of a form before
submitting? How can I use callbacks? I thought of using this
$("form").submit();
I´m not sure about the rerst
Thanks