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. Selecting a Table Cell

Selecting a Table Cell

Scheduled Pinned Locked Moved Web Development
htmltutorial
3 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.
  • M Offline
    M Offline
    mnaveed
    wrote on last edited by
    #1

    Hi is there any way that we can select or unselect single or multiple cells in a HTML Table by clicking on the cell. if any body knows any example or any thing helpful about this please reply me. thanks do it man

    R A 2 Replies Last reply
    0
    • M mnaveed

      Hi is there any way that we can select or unselect single or multiple cells in a HTML Table by clicking on the cell. if any body knows any example or any thing helpful about this please reply me. thanks do it man

      R Offline
      R Offline
      rihdus
      wrote on last edited by
      #2

      Well, Just give ur specific purpose. I have one proposed solution: 1). Set a check box to each cell , and on checking that javascript function will call to change a color. 2).You can set a top check box to check all the check boxes and hence colors to each cell.:-O Any systematic work reflects its significance for a long time, Thogh I m not totally against "The Prototyping".So let's discuss in depth.....

      1 Reply Last reply
      0
      • M mnaveed

        Hi is there any way that we can select or unselect single or multiple cells in a HTML Table by clicking on the cell. if any body knows any example or any thing helpful about this please reply me. thanks do it man

        A Offline
        A Offline
        alex barylski
        wrote on last edited by
        #3

        If you mean selection which can be then copied into clipboard, then I would look into using something like:

        var obj = document.getElementById('my_table_row')
        var tr = obj.createRange();
        tr.select();

        You will have to play around with this code, but it should give you a general idea as to how to accomplish selection. How do I print my voice mail?

        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