[jQuery] Re: Best practice to get form field values

2008-06-14 Thread mar10
Thank you Dan, this looks good. Still wondering, if form field access shouldn't be part of the core. (I need it more frequently than all these slideUpBlendFadeToggle effects ;-) Martin On Jun 12, 9:16 am, mar10 <[EMAIL PROTECTED]> wrote: > Hi, > > what would you consider the 'best practice' to

[jQuery] Re: Best practice to get form field values

2008-06-12 Thread Isaak Malik
My favorite way to get form input values and validate them is by using the each() method. Here's an example: $(function() { $('#myForm input[type=text]').each(function() { switch (this.name) { case 'first_name': // validate the first name input field here

[jQuery] Re: Best practice to get form field values

2008-06-12 Thread Jack Killpatrick
At the risk of slightly drifting the subject of this thread, I took a look at the demos for the Field plugin: http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm#examples Does anyone know if I can use it to select all of the form fields inside a specific div? IE:           

[jQuery] Re: Best practice to get form field values

2008-06-12 Thread Dan G. Switzer, II
Martin, Check out the Field plug-in: http://jquery.com/plugins/project/field This provides the type of functionality you're looking for (of providing form values back for any type of field.) -Dan >-Original Message- >From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On >Behal