$('a.btn').click(function(){ form.submit(); })
$('a.btn').click(function(){ $('form').get(0).submit(); return false; });
onclick="submitForm()" function submitForm(){ $('form').submit(); }
function submitForm(){ setTimeout(function (){ $('form').submit(); },0); }