no the goal was to use the this pointer of the a href, in order to be sure to validate the good form
thanks anyway On Apr 26, 9:32 pm, Ryura <[EMAIL PROTECTED]> wrote: > <script> > $(function() { > $('form a').click(function() { > $(this).parent('form').submit(); > return false;}); > }); > > </script> > > <a href="#" class="img ok"></a> > > Try that. > > On Apr 26, 1:38 pm, mumuri <[EMAIL PROTECTED]> wrote: > > > Hello > > > for the moment to submit a form ,i do like this (the a href is wrapped > > in a form tag) > > > <a href="javascript:$(".ok").parent('form').submit();" class="img > > ok"></a> > > > but i would like to do like this > > > <a href="javascript:$(this).parent('form').submit();" class="img > > ok"></a> > > > as this doesn't work i would like to know if there is a syntaxe for > > this