Hum, sorry not on top of my head. I'll try your code when I get home.
..fredrik On Jun 24, 6:39 pm, jogep <joh...@googlemail.com> wrote: > when I try your code the form will still executed twice. > The Alert tells me 1 closest form . > > Any other Idea? > > Thank You > Johannes > ------------------------------------------------- > web:http://www.jgeppert.com > twitter:http://twitter.com/jogep > > On 24 Jun., 16:01, fredrik <carl.fredrik.bonan...@gmail.com> wrote: > > > > > 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