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. Problem when try to get value of text box in javascript

Problem when try to get value of text box in javascript

Scheduled Pinned Locked Moved ASP.NET
helpjavascript
6 Posts 4 Posters 17 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.
  • J Offline
    J Offline
    jintalPatel
    wrote on last edited by
    #1

    i want to get text box value in my javascript function but my textbox visible=flase so i am not getting value in my function. Help ME

    A L 2 Replies Last reply
    0
    • J jintalPatel

      i want to get text box value in my javascript function but my textbox visible=flase so i am not getting value in my function. Help ME

      A Offline
      A Offline
      Arun Jacob
      wrote on last edited by
      #2

      Instead of setting Visible property set Style = "display:none;"

      Arun Jacob My Technical Blog : Code.NET

      modified on Tuesday, July 13, 2010 6:37 AM

      J 1 Reply Last reply
      0
      • J jintalPatel

        i want to get text box value in my javascript function but my textbox visible=flase so i am not getting value in my function. Help ME

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Javascript will not identify hidden controls. You need to do following to achieve the same. 1. Keep textbox visible. 2. Define following css class.

        .hidden
        {
            display:none;
        }
        

        3. Assign your textbox the class as follow.

        HTH

        Jinal Desai - LIVE Experience is mother of sage....

        J 1 Reply Last reply
        0
        • A Arun Jacob

          Instead of setting Visible property set Style = "display:none;"

          Arun Jacob My Technical Blog : Code.NET

          modified on Tuesday, July 13, 2010 6:37 AM

          J Offline
          J Offline
          jintalPatel
          wrote on last edited by
          #4

          Thanks

          1 Reply Last reply
          0
          • L Lost User

            Javascript will not identify hidden controls. You need to do following to achieve the same. 1. Keep textbox visible. 2. Define following css class.

            .hidden
            {
                display:none;
            }
            

            3. Assign your textbox the class as follow.

            HTH

            Jinal Desai - LIVE Experience is mother of sage....

            J Offline
            J Offline
            jintalPatel
            wrote on last edited by
            #5

            Thanks It works

            R 1 Reply Last reply
            0
            • J jintalPatel

              Thanks It works

              R Offline
              R Offline
              raju melveetilpurayil
              wrote on last edited by
              #6

              for your attention when you set Visible="false" in server side it will not render in client side. if you want to check take View Page Source

              Raju.M

              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