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. "Dynamic" textbox /TEXTAREA

"Dynamic" textbox /TEXTAREA

Scheduled Pinned Locked Moved ASP.NET
question
2 Posts 2 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.
  • E Offline
    E Offline
    eramgarden
    wrote on last edited by
    #1

    I have a checkboxlist, that can have from 1 to 32 checkboxes... When a checkbox is clicked, I want to display a TextBox/TextArea... How can I reserve a place for this textbox next to each checkboxlist? How can I have it as textarea since the text can be a paragraph or more?

    J 1 Reply Last reply
    0
    • E eramgarden

      I have a checkboxlist, that can have from 1 to 32 checkboxes... When a checkbox is clicked, I want to display a TextBox/TextArea... How can I reserve a place for this textbox next to each checkboxlist? How can I have it as textarea since the text can be a paragraph or more?

      J Offline
      J Offline
      Jesse Squire
      wrote on last edited by
      #2

      You could place the textbox, textarea, or a div tag containing your text next to the check box, and setting the CSS display property to 'none'. You could then add a javascript handler to the checkbox to flip the display to 'block'. That would allow you to peek-a-boo the text on the client side, eliminating uneeded postbacks. That technique should work for modern browsers. I'd double check compatibility if you need to support some of the dinosaurs (ie Netscape 4.) Hope that helps. :)   --Jesse

      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