Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Uncheckable Checkbox

Reply
Thread Tools

Uncheckable Checkbox

 
 
crhaynes
Guest
Posts: n/a
 
      08-27-2004

I have a form that has several checkboxes. If seleted, the submi
button will send an email request for the items selected. I am addin
a new item that would make the others obsolete if selected. Is there
way to code it so that if the new item is selected, all other checkboxe
will become uncheckable? Thanks.


-
crhayne
-----------------------------------------------------------------------
Posted via http://www.forum4designers.co
-----------------------------------------------------------------------
View this thread: http://www.forum4designers.com/message113403.htm

 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      08-27-2004
crhaynes <(E-Mail Removed)4designers.com> wrote:

>I have a form that has several checkboxes. If seleted, the submit
>button will send an email request for the items selected. I am adding
>a new item that would make the others obsolete if selected. Is there a
>way to code it so that if the new item is selected, all other checkboxes
>will become uncheckable? Thanks..


It's possible to do this via JavaScript. Write a script that sets the
disabled property to true for the other checkboxes when the control
checkbox is checked.

However, JavaScript is of course optional and so a more robust
solution is to code your server side script to simply ignore all the
other checkboxes when it receives a submission that includes the
control checkbox value.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ASPNET CheckBox and a CheckBox in a TemplateField Jason Huang ASP .Net 0 06-29-2007 12:35 AM
DataGrid and embeded Checkbox..How to find if checkbox clicked =?Utf-8?B?RG90TmV0RGV2?= ASP .Net 1 10-06-2006 04:11 PM
disable checkbox list checkbox Vikram ASP .Net 1 01-25-2006 02:59 PM
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked. Joey Pang ASP .Net Datagrid Control 4 06-13-2005 02:29 AM
Text on Checkbox below the checkbox tshad ASP .Net 0 04-14-2005 11:26 PM



Advertisments