[jQuery] Re: 2 Form Fields

2008-11-20 Thread Mike Alsup

> I've tried $('#form1#input1') or something similar but it doesn't
> work. What is the correct syntax? Thanks!

The correct syntax is CSS, so you need a space between the two:

$('#form1 #input1');

or, since the input you want has an ID you can simply use that:

$('#input1');



[jQuery] Re: 2 Form Fields

2008-11-20 Thread fa fa
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!