Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile cells Hide/show in each of the rows of a table using javascript

    Hi friends,

    I have a table which is given below. If I select 'No' from the 'heading1' row, I want to hide 'Heading2', 'heading3' and 'heading4' in the same row. otherwise I select 'Yes' i want to show all the option in 'Heading2', 'heading3' and 'heading4'. Also in between if we select 'No' from the 'heading3' I want to hide 'heading4' alternatively if we select 'Yes' in 'heading3', i want to show 'heading4'.

    I want to put this hide/show in each and every rows of this table.

    I have tried many times but not able to write this code.
    Can anyone in the forum help me in writing this code using javascript?


    TABLE
    ________________________________________________________________________
    | Heading1 |Heading2 | Heading3 | Heading4 |
    ________________________________________________________________________
    | (.) Yes | Input box | (.) Yes | Input box |
    | (.) No | | (.) No | |
    ________________________________________________________________________
    | (.) Yes | Input box | (.) Yes | Input box |
    | (.) No | | (.) No | |
    ________________________________________________________________________
    | (.) Yes | Input box | (.) Yes | Input box |
    | (.) No | | (.) No | |
    ________________________________________________________________________

    Amarjit

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,013
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts
    See:- *** WARNING: Questions posted here will be deleted! ***.

    You will not get any reply in this forum which is intended to be used only to
    post a completed (working) script for showcasing/benefit of others.


  •  

    Posting Permissions

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