Wrox Programmer Forums
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 9th, 2004, 04:48 AM
Friend of Wrox
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default 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 ?

PHP, SEO | anshul shrivastava | mediasworks.org | FB
Old December 9th, 2004, 06:14 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post

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.
Old December 10th, 2004, 05:26 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

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)

Similar Threads
Thread Thread Starter Forum Replies Last Post
checkbox checked by default by html:checkbox sachin.tathod Struts 3 December 4th, 2006 03:41 PM
Need Info mr_shoaib SQL Server 2000 1 October 17th, 2005 07:02 AM
Need Info mr_shoaib VB.NET 2002/2003 Basics 1 October 13th, 2005 05:18 AM
need info vinny Oracle 0 December 28th, 2003 12:04 AM
Where would I get info on how to download info aidanc ASP.NET 1.x and 2.0 Application Design 1 September 29th, 2003 02:45 PM

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