Comment on Tutorial - FAQ: Why are my checkboxes not being set from ON to OFF? By Apache Foundation



Comment Added by : Stray

Comment Added at : 2010-01-05 08:07:47

Comment on Tutorial : FAQ: Why are my checkboxes not being set from ON to OFF? By Apache Foundation
You can also include a hidden field of the same name preceding the checkbox. Assign this field the opposite value as the checkbox. If the checkbox is checked upon submission, the checkbox value is sent, otherwise the preceeding value is sent.

<INPUT TYPE=HIDDEN NAME=ENABLED VALUE=0>
<INPUT TYPE=CHECKBOX NAME=ENABLED VALUE=1> // We display enabled twice in order to pass the correct value even when not checked


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Hey,

I am having a peculiar problem

View Tutorial          By: mehr at 2011-05-11 10:22:46

2. I've been satisfied with your tutorial site. Since
View Tutorial          By: Mark Harold F. Manguino at 2008-08-06 05:00:54

3. very good explanation... thnx...
View Tutorial          By: gobu at 2009-04-05 23:43:19

4. To install 32 bit java Communication API you can f
View Tutorial          By: Shailendra at 2013-04-06 14:49:44

5. nice example 2 uderstand
View Tutorial          By: nilesh doshi at 2011-05-09 01:24:24

6. hi,
there is no main method in SMSClient.ja

View Tutorial          By: raju at 2010-01-22 08:28:45

7. # include <iostream.h>
int main ()
View Tutorial          By: nazarine at 2011-07-06 06:17:10

8. thank you for ur programs.........
View Tutorial          By: NAGARAJRATHINARAJ at 2012-01-24 14:39:19

9. #include<iostream>
#include<conio.

View Tutorial          By: Zohaib Farooq at 2011-05-23 07:58:44

10. how to write an byte array containing 10 different
View Tutorial          By: sanjana at 2015-01-17 06:32:41