Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript javascript style.display

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34956
    margaux
    Participant

    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













    Email for a brochure.




    Contact Us

















    #89871
    SgtLegend
    Member

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

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

    // Will work
    document.getElementById("contactForm")
    #89934
    margaux
    Participant

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

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.