[jQuery] Re: 2 forms
that was it. i had an element named 'submit' on my page. it works now. thanks guys!! On Thu, Nov 20, 2008 at 3:53 PM, Charlie Griefer <[EMAIL PROTECTED]>wrote: > 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: >> >>> >>> > ... >>> > ... >>> > >>> > 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. >
[jQuery] Re: 2 forms
sorry, that is a typo i meant $('#form2').submit() On Thu, Nov 20, 2008 at 3:34 PM, Charlie Griefer <[EMAIL PROTECTED]>wrote: > On Thu, Nov 20, 2008 at 3:33 PM, Mike Alsup <[EMAIL PROTECTED]> wrote: > >> >> > ... >> > ... >> > >> > 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? > > > > altho if that's the actual code copied/pasted, he's missing a closing > single quote around the #form2 > > -- > 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. >
[jQuery] Re: 2 forms
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: > > > ... > > ... > > > > 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?
[jQuery] Re: 2 forms
document.forms["form2"].submit(); doesn't seem to work. what is the jquery method to do this? thanks On Thu, Nov 20, 2008 at 3:24 PM, fa fa <[EMAIL PROTECTED]> wrote: > Hi I have 2 forms on my page > > ... > ... > > how would i do a form submit? > > $( > '#form2).submit(); > is not the correct syntax. what is the correct syntax? thanks >
[jQuery] 2 forms
Hi I have 2 forms on my page ... ... how would i do a form submit? $('#form2).submit(); is not the correct syntax. what is the correct syntax? thanks
[jQuery] Re: 2 Form Fields
similar to document.forms, what is the jquery equivalent? On Thu, Nov 20, 2008 at 2:05 AM, lunet4 <[EMAIL PROTECTED]> wrote: > How would i refer to an element in a form if i have at least 2 forms > in a page? > > For example, llet's say i have the following: > > > > > > > > > > How would i refer to the input1 in form1? > > I've tried $('#form1#input1') or something similar but it doesn't > work. What is the correct syntax? Thanks!