can you post your code to http://pastebin.com/ ?
the syntax looks correct, and as long as "form2" is a unique ID on the page,
it should work (as Mike stated).  something else is amiss.

On Thu, Nov 20, 2008 at 3:44 PM, fa fa <[EMAIL PROTECTED]> wrote:

> no, the forms have unique id's.
>
> i've checked online tutorials, and with 1 form, i can do
> $('form').submit()... but for some reason, i cannot do something like
> $('#form2').submit()
>
> On Thu, Nov 20, 2008 at 3:33 PM, Mike Alsup <[EMAIL PROTECTED]> wrote:
>
>>
>> > <form id="form1">...</form>
>> > <form id="form2">...</form>
>> >
>> > how would i do a form submit?
>> >
>> > $('#form2).submit();
>> >
>> > is not the correct syntax. what is the correct syntax? thanks
>>
>> Yes, that is the correct syntax.  Do you have more than one element
>> with that ID or name on your page?
>
>
>


-- 
I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.

Reply via email to