[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Klaus Hartl
Try something like: $('#contact-form a').click(function() { $(this).parents('form').submit(); return false; }); Or: Simply style a submit input like a link (this is what I would do). --Klaus On 4 Feb., 15:38, Tintin81 wrote: > Hi Liam and Klaus, > > thanks for your swift feedback. >

[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Tintin81
Hi Liam and Klaus, thanks for your swift feedback. I forgot to say that I am using the http://docs.jquery.com/ Plugins/Validation">JQuery Validation Plugin for this matter. The function I am using is rather simple: $(document).ready(function() { $("#contact-form").validate();

[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Liam Potter
didn't know this, cheers. ok, replace the javascript with this then |document.forms['myformid'].submit();| Klaus Hartl wrote: The name attribute is deprecated for the form element. Using an id ist good practice. --Klaus On 4 Feb., 14:41, Liam Potter wrote: why you using get element by

[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Klaus Hartl
The name attribute is deprecated for the form element. Using an id ist good practice. --Klaus On 4 Feb., 14:41, Liam Potter wrote: > why you using get element by id? > > make sure your form has a name ( ) > > then use this > > Send > > || > > Tintin81 wrote: > > Hi, > > > I have a very simple

[jQuery] Re: How to submit a form with an Anchor rather than an Input tag?

2009-02-04 Thread Liam Potter
why you using get element by id? make sure your form has a name ( ) then use this Send || Tintin81 wrote: Hi, I have a very simple contact form that I would like to submit using an anchor rather than an input tag. This is what I've got so far: [code]Send[/code] Unfortunately, it doesn't