Jump to content

W3CSS open/close table rows by CLASS ?


gordonisnz

Recommended Posts

https://www.w3schools.com/w3css/w3css_sidebar.asp

Hello. I'm researching the above page as a starting point, and ive also googled and found there is no "CLASS" version of the getElementById command.

basically, I want to do a full table, but a number of rows (by criteria) will be given a class name. what i am after is a way to "hide" or remove those selected rows from the table. but if i press a button, the rows will re-emerge & show themselves into the table - NOT as a separate / distinct table, but seamless into the same table.

has anyone got a W3CSS (javascript) command/process to do this by class instead of ID ?  

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...