[jQuery] 2 Form Fields

[jQuery] 2 Form Fields


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!