Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. javascript expected ')'

javascript expected ')'

Scheduled Pinned Locked Moved ASP.NET
javascripthelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chartierpw
    wrote on last edited by
    #1

    I get an javascript expected ')' error on the code below: function toggle() { if (document.getElementById("<%= RadioButtonList_Liability.ClientID %>").value == "Yes") { document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "inherit"; } else { document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; } ) for the life of me, I don't see anything wrong ....</x-turndown>

    C A D 3 Replies Last reply
    0
    • C chartierpw

      I get an javascript expected ')' error on the code below: function toggle() { if (document.getElementById("<%= RadioButtonList_Liability.ClientID %>").value == "Yes") { document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "inherit"; } else { document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; } ) for the life of me, I don't see anything wrong ....</x-turndown>

      C Offline
      C Offline
      chartierpw
      wrote on last edited by
      #2

      Never mind, now that I see it in this editor I see the paren is wrong ... sigh ...

      1 Reply Last reply
      0
      • C chartierpw

        I get an javascript expected ')' error on the code below: function toggle() { if (document.getElementById("<%= RadioButtonList_Liability.ClientID %>").value == "Yes") { document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "inherit"; } else { document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; } ) for the life of me, I don't see anything wrong ....</x-turndown>

        A Offline
        A Offline
        adkalavadia
        wrote on last edited by
        #3

        line no 10 in your javascript.... document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; % is missing......

        !- F - R - I - E - N - D - S -!

        1 Reply Last reply
        0
        • C chartierpw

          I get an javascript expected ')' error on the code below: function toggle() { if (document.getElementById("<%= RadioButtonList_Liability.ClientID %>").value == "Yes") { document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "inherit"; } else { document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden"; } ) for the life of me, I don't see anything wrong ....</x-turndown>

          D Offline
          D Offline
          Dinesh Mani
          wrote on last edited by
          #4

          Couple of things that I see is missing/wrong... 1.

          document.getElementById("<= Label_Liability.ClientID %>).style.visibility = "hidden";

          should be

          document.getElementById("<%= Label_Liability.ClientID %>").style.visibility = "hidden";

          2. I see one extra ")" at the end of the javascript block... Line 12. Suggestion - Always use single quote ['] with javascript.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups