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
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'
Thanks for looking! I posted the source above.
cheers,
-robert
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
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
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
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
7 matches
Mail list logo