Skip to content Skip to sidebar Skip to footer
Showing posts with the label Htmlcollection

Change Data-attribute On Click Of Html Elements

I am trying to apply changes to the DOM when a is clicked. When clicked, it should add data-state=… Read more Change Data-attribute On Click Of Html Elements

How To Iterate On Htmlcollection?

I have some elements in my HTML with class node-item, I access them in my component using: let node… Read more How To Iterate On Htmlcollection?

Convert Script To Handle Multiple Tables Independently

I have two scripts which work perfectly when a page contains a single table. However, now I have ne… Read more Convert Script To Handle Multiple Tables Independently