Hide the data in a specific column and show the data on click.

Hide the data in a specific column and show the data on click.

TheGreyRavenTheGreyRaven Posts: 4Questions: 3Answers: 0

Hi!

I have been messing a bit with DataTables and it works wonderful, I created a simple table that has the following columns:

| Username | IP Address |

What I want to do is hide all the data inside the IP Address column and only show the data if I click on a specific row like this:

| Username | IP Address |
  JohnDoe   ************
  DoeJohn    127.0.0.1

I managed to figure out how to get the text from the cell I clicked on using Javascript but thats how far I managed to get, any ideas on what I can do?

Thank you!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    Answer ✓

    Hi @TheGreyRaven ,

    This here looks like it's doing what you want. Hope that does the trick,

    Cheers,

    Colin

This discussion has been closed.