the "hidden" part won't match a thing, you should use ":hidden" instead, and anyway, the "input" part will match hiddens as well.
On Sep 27, 6:28 pm, mo2g <[EMAIL PROTECTED]> wrote: > I set up a quick function to parse the Parms array I get from this and > it doesn't appear to work. > > Basically it is an empty set. > > Here is the URL of the page I am working on: > > http://www.glyfada.net/index.php?option=com_mtzcssearch&Itemid=46&tem... > > under the advanced search form in the center of the page enter a > zipcode in the Your Address field (30022 works) and then select a > distance. I use javascript to parse the form and show a live result #. > > The alert that pops up to show the values is empty. If I remove the > form reference, I get everything on the page. > > 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?- Hide > > > quoted text - > > - Show quoted text -