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 3 of 3

Thread: show hide debug

  1. #1
    Senior Coder
    Join Date
    May 2004
    Posts
    1,459
    Thanks
    15
    Thanked 0 Times in 0 Posts

    show hide debug

    my javascript is
    Code:
    if(radio1 == 'AM and PM')
    					{
    							document.getElementById("am").style.display = 'none'; 
    							document.getElementById("pm").style.display = 'none'; 
    					}
    					else if(radio1 == 'AM Only')
    					{
    						document.getElementById("am").style.display = 'none'; 
    						document.getElementById("pm").style.display.display = 'block';
    						//alert("am only"); 
    					}
    for some reason though if on my form i choose AM and PM and then switch to AM only it doesn't re show the pm div. is there something in my code that im ding wrong to get them to redisplay?

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,859
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    document.getElementById("pm").style.display.display = 'block';
    Any clue?
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder
    Join Date
    May 2004
    Posts
    1,459
    Thanks
    15
    Thanked 0 Times in 0 Posts
    thanks..


  •  

    Posting Permissions

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