BorisMoore/jsrender — Issue #35: newly rendered input:submit button in form does not fire submit in Google Chrome
Author: mjaric
Created: 2011-12-07 04:42:10+00:00
State: open

I guess this is chrome issue, but worth to mention here.

I had situation when rendered template replaced content in of whole form element content, including initial input:submit button, which caused form not submiting to server regular (without giving it hand with additional javascript code) form submit was not mention to me ajax, just plain old HTTP post.

Issue only occurs in Google Chrome, Firefox is not suffering from it.

Current workaround is to attach event handler like:

$("form").on("click", "input:submit", function(){
this.form.submit();
});