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:
>
> <form id="form1">
>   <input id="input1" />
> </form>
>
> <form id="form2">
>   <input id="input1" />
> </form>
>
> 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!

Reply via email to