Submitting the form while replacing submitting element
This fiddle demonstrates how a submit button triggers a submit but when replaced within it's click event will not continue to submit the form.
The form will have to be submitted manually instead if the element triggering the original submit has been replaced in the same process.