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 May 15th, 2005, 07:49 AM
Friend of Wrox
Join Date: Sep 2004
Posts: 103
Thanks: 0
Thanked 0 Times in 0 Posts
Default Readonly checkbox

hi all,
 I need a readonly checkbox on a page but a checkbox can not be set as readonly.so I tried making it 'disabled' but when it is checked no
value is submited to the server(the value will be false i.e. not checked)
what's the problem?

Old May 20th, 2005, 06:28 AM
Friend of Wrox
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco

<INPUT TYPE="checkbox" NAME="MyCheckbox" VALUE="Select Me" DISABLED>
document.forms[0].MyCheckbox.disabled = false;
If your browser supports this feature, the following checkbox should be disabled.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recordset is readonly vb.net-newbie ADO.NET 1 May 8th, 2007 11:12 AM
DataBase is readonly debabrata ASP.NET 2.0 Professional 0 April 17th, 2007 04:54 AM
checkbox checked by default by html:checkbox sachin.tathod Struts 3 December 4th, 2006 03:41 PM
readonly checkbox Dj Kat HTML Code Clinic 3 November 10th, 2006 08:34 AM
Set all textboxes to ReadOnly nobreferreira Pro VB.NET 2002/2003 6 October 15th, 2004 01:02 PM

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