Hide all columns except selection?

Hide all columns except selection?

sarahb1206sarahb1206 Posts: 1Questions: 0Answers: 0

I'm using Datatables to display a calendar of information. By default all of the days are displayed (Monday - Sunday) and I have checkboxes to hide specific days.

<input type=\"checkbox\" checked onclick=\"toggle('.Monday', this)\" >

This works well, but I'd like to change the functionality so that all of the checkboxes are unchecked initially and when a user selects a specific day all of the other days are hidden.

So, if Monday is checked all of the other days of the week are hidden.

Sorry if this is a rudimentary question, I'm a novice and can't seem to find the answer.

Replies

  • colincolin Posts: 15,112Questions: 1Answers: 2,583

    Hi @sarahb1206 ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.