p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   HTML Code Clinic (http://p2p.wrox.com/forumdisplay.php?f=90)
-   -   info about checkbox (http://p2p.wrox.com/showthread.php?t=22339)

anshul December 9th, 2004 04:48 AM

info about checkbox
i need quick information about input type=checkbox
what are possible values for attribute value and attribute checked
what value is passed 1) if it is checked and 2) if it is not checked ?

Greg Griffiths December 9th, 2004 06:14 PM

Value can be anything you want, a string, a number etc and is the value that is passed to the server when the checkbox is checked and submitted to somewhere such as an ASP page.

CHECKED is a boolean, true or false, if true then the checkbox is currently checked, and vice versa.

joefawcett December 10th, 2004 05:26 AM

If you are writing traditional HTML then checked is normally a standalone attribute. This is a short form of checked="checked" which is what you would use in XHTML or in an XSLT stylesheet that was converting to (X)HTML.


Joe (Microsoft MVP - XML)

All times are GMT -4. The time now is 06:20 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.