Jump to content
gordonisnz

W3CSS open/close table rows by CLASS ?

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 ?  

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...