Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   Uncheckable Checkbox (http://www.velocityreviews.com/forums/t159216-uncheckable-checkbox.html)

crhaynes 08-27-2004 06:19 PM

Uncheckable Checkbox
 

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


Steve Pugh 08-27-2004 11:14 PM

Re: Uncheckable Checkbox
 
crhaynes <crhaynes.1bo6y0@mail.forum4designers.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 <steve@pugh.net> <http://steve.pugh.net/>


All times are GMT. The time now is 12:49 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.