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. Hi,
i am working on ocap xlet project. here

View Tutorial          By: swati at 2012-07-09 08:39:13

2. Where is the methods related
View Tutorial          By: Osvaldo F. L. Mendes at 2008-03-17 15:40:48

3. i always encounter a problem every time we discuss
View Tutorial          By: sukira 18 at 2009-08-29 03:25:23

4. How do i get tht GSM Connection .Can any one give
View Tutorial          By: srinivas raju at 2008-08-08 02:50:02

5. nice article... got th topic clearly
View Tutorial          By: praba at 2011-05-09 23:29:26

6. these above examples of overloading and overriding
View Tutorial          By: janmejay pant at 2011-03-02 22:06:16

7. hi! i want to know about how database createed in
View Tutorial          By: kundan at 2010-05-19 05:03:33

8. explanation is good but i have one doubt what is t
View Tutorial          By: sulthan at 2012-10-09 06:13:14

9. super example...it very useful for me...
View Tutorial          By: elan at 2011-06-02 07:54:39

10. where's your main sir?
View Tutorial          By: armor at 2010-12-08 01:00:45