[jQuery] Re: formatting/defining variable values

2008-02-21 Thread pedramphp
HI there , Please send me the HTML form On Thu, Feb 21, 2008 at 2:02 AM, Robert Hill [EMAIL PROTECTED] wrote: Hello I'm collecting a number of values from various form elements: textfield, radio, checkbox. since some of the fields aren't require on my form, when I POST their values they

[jQuery] Re: formatting/defining variable values

2008-02-21 Thread Hamish Campbell
What version of jQuery are you using? .val() should return rather than undefined if you find inputs successfully. HOWEVER, there is another problem: Putting ':checked' means that if the boxes are NOT checked, jQuery won't find them so .val() doesn't exist for the object. Remove the ':checked'

[jQuery] Re: formatting/defining variable values

2008-02-21 Thread Robert Hill
Thanks for looking! I posted the source above. cheers, -robert

[jQuery] Re: formatting/defining variable values

2008-02-21 Thread Robert Hill
Here is the html code: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd html xmlns=http://www.w3.org/1999/xhtml; head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1 / titleForm : Carman Research/title link

[jQuery] Re: formatting/defining variable values

2008-02-21 Thread Robert Hill
I'm using 1.2.2. I see how using checked could cause a problem, but I don't want the values if there are not checked... On Feb 20, 9:29 pm, Hamish Campbell [EMAIL PROTECTED] wrote: What version of jQuery are you using? .val() should return rather than undefined if you find inputs

[jQuery] Re: formatting/defining variable values

2008-02-21 Thread Robert Hill
oh, I misunderstood what you meant the first time. .val() instead of check should work originally I had wanted to collect all the values into one variable for the checkboxes, but I ran into some problems so I changed over to making a field for each checkbox. On Feb 20, 9:29 pm, Hamish

[jQuery] Re: formatting/defining variable values

2008-02-20 Thread Q-Zma
show your sourcecode please On Feb 21, 12:32 am, Robert Hill [EMAIL PROTECTED] wrote: Hello I'm collecting a number of values from various form elements: textfield, radio, checkbox. since some of the fields aren't require on my form, when I POST their values they are returned as