Results 1 to 2 of 2

Thread: Disable Checkbox on condition

  1. #1
    Join Date
    Oct 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Disable Checkbox on condition

    In my table, in 1st coloumn i have a checkbox,in 2nd coloumn i have status.if the status is ' c ' then the check box has to be disabled dynamically.plz give me code.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Well, you haven't given us much to go on. However, assuming you know how to hook (access) the element involved and have a way to read 'status':

    Code:
    if(value_read_from_status=='c')
    hook_for_the_checkbox.disabled=1;
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •