Uncheckable Checkbox

Discussion in 'HTML' started by crhaynes, Aug 27, 2004.

  1. crhaynes

    crhaynes Guest

    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
     
    crhaynes, Aug 27, 2004
    #1
    1. Advertisements

  2. crhaynes

    Steve Pugh Guest

    crhaynes <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 <> <http://steve.pugh.net/>
     
    Steve Pugh, Aug 28, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. tshad
    Replies:
    0
    Views:
    732
    tshad
    Apr 15, 2005
  2. Vikram

    disable checkbox list checkbox

    Vikram, Jan 25, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,561
    ThunderMusic
    Jan 25, 2006
  3. =?Utf-8?B?RG90TmV0RGV2?=

    DataGrid and embeded Checkbox..How to find if checkbox clicked

    =?Utf-8?B?RG90TmV0RGV2?=, Oct 6, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    1,013
    David Wier
    Oct 6, 2006
  4. Jason Huang
    Replies:
    0
    Views:
    702
    Jason Huang
    Jun 29, 2007
  5. Joey Pang
    Replies:
    4
    Views:
    828
    Joey Pang
    Jun 13, 2005
  6. Imran Aziz

    checkbox value attribute in checkbox control ?

    Imran Aziz, Aug 6, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    343
    Imran Aziz
    Aug 8, 2005
  7. Michael Champagne
    Replies:
    4
    Views:
    585
    Matt Kruse
    Apr 20, 2004
  8. Terje
    Replies:
    5
    Views:
    572
    Evertjan.
    Nov 18, 2004
Loading...