Sorry if this double posts...

I am a newbie with JQuery and have ported a form from Prototype.

I have two forms on a page:

<form action="go.php" method="post" name="adminForm" id="adminForm">
<input id="address" name="address" size="60" >
more fields...
<input type="submit">
</form>

<form action="test.php" method="post" name="emailForm" id="emailForm">
<input id="name" name="name" size="60" >
more fields...
<input type="submit">
</form>

I am using the following code on the page to parse the input from the
form:

       $('input, select, hidden').each(function(){

The problem is this code grabs the input from both forms. I just need
the input from the form "adminForm".

I tried:

      $('#adminForm :input, select, hidden').each(function(){

but it just kills 'input' while still collecting the 'select' and
'hidden' type fields.

How do I tell JQuery that I want to limit it to the adminForm form?

Reply via email to