What happens when you tie the event to the form instead of the submit button:
$('#teilprojekt_create').submit(function(e) { e.preventDefault(); $(this).ajaxSubmit(optionstpcsubmit); }); If that doesn't work, see what the length of $('#tpcsubmit').closest ("form") is. console.log($('#tpcsubmit').closest("form").length)) or alert($('#tpcsubmit').closest("form").length) ..fredrik On Jun 24, 3:47 pm, jogep <joh...@googlemail.com> wrote: > thanks for fast response. > > Sorry but the form was still executed twice. > > Best Regards > Johannes Geppert > > ------------------------------------------------- > web:http://www.jgeppert.com > twitter:http://twitter.com/jogep > > On 24 Jun., 11:42, fredrik <carl.fredrik.bonan...@gmail.com> wrote: > > > > > You have to prevent the form it self from posting. I think when you > > return false, you return it to the jQuery event, not the post event. > > Try this: > > > $('#tpcsubmit').closest("form").submit(function(e) { > > e.preventDefault(); > > $(this).ajaxSubmit(optionstpcsubmit); > > > });