Grow your CSS skills. Land your dream job.

javascript style.display

  • # October 28, 2011 at 7:10 pm

    thought I’d give javascript a go and do some simple stuff like show a div when an element is clicked. It seems pretty simple but I dont know why I’m getting the error – missing “;” ???

    Here’s the stripped down code


    < !DOCTYPE html>










    Email for a brochure.




    Contact Us

















    # October 28, 2011 at 8:30 pm

    In your code you have a curly brace where a parentheses should be

    // Won't work
    document.getElementById{"contactForm")

    // Will work
    document.getElementById("contactForm")
    # October 30, 2011 at 11:13 am

    I hate it when I miss something like that – thx!

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".