Didn't work. I set up a function to parse the Params and show them in an alert.
The results are blank when I add the #adminForm and show all the fields on the page when I remove it. Any other ideas? On Sep 27, 4:42 pm, "Josh Nathanson" <[EMAIL PROTECTED]> wrote: > Try this: > > $('input,select,hidden', '#adminForm').each(function() { > do stuff; > > } > > This says "get all input, select, hidden elements in the context of > #adminForm." > > -- Josh > > ----- Original Message ----- > From: "mo2g" <[EMAIL PROTECTED]> > To: "jQuery (English)" <jquery-en@googlegroups.com> > Sent: Thursday, September 27, 2007 12:55 PM > Subject: [jQuery] Can't parse input from one form of many on page > > > 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?