Results 1 to 4 of 4

Thread: div tag problem...

  1. #1
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    div tag problem...

    In my web page i am using one contact form. In that form i want to hide some rows initially. I am using the div tag. But the particular rows still displayed. I am using the following tag. div id="hide" style="display:none".
    I don't know why this is not working ? can anyone knew the answer ?

    ----------------
    suresh

    Last edited by psuresh1982; 01-11-2007 at 06:32 AM.

  2. #2
    Junior Member
    Join Date
    Nov 2006
    Answers
    25

    Re: div tag problem...

    i had the same situation, ie to hide the details by clicking on the image......for that i have used the table which has the details.......

    function showHide(id)
    {
    obj=document.getElementById(id);
    obj.style.display="none";
    }

    is the javascript code.


    the details......


    and it worked for fine for me......so try this......

    hope this would be useful for u....


  3. #3
    Junior Member
    Join Date
    Nov 2006
    Answers
    25

    Re: div tag problem...

    sorry this is the html part code......
    img src="" onclick="showHide('tab1')" --image tag

    table id="tab1"
    the details......
    /table


  4. #4
    Contributing Member
    Join Date
    Sep 2006
    Answers
    962

    Re: div tag problem...

    hi elango,

    Thanks for your reply. I know if we using the table its working fine. Here i have 10 rows. i want to hide these rows according to the selection of select box. That's why i want to hide particularly the rows. Because if i use 10 tables for 10 rows then it looking very poor coding. That's why i need a help.

    Anyway thanks for your information...Expect a good posts from you.

    ----------------
    suresh


  5.  Sponsored Ads
    Ad


     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact