How to close all elements of each details tag of HTML5 using a button/link?
This can be done by removing the "open" attribute of details tag on button click to Close All details tag and adding the "open" attribute to Open All elements. Below is the code for the same:
This can be done by removing the "open" attribute of details tag on button click to Close All details tag and adding the "open" attribute to Open All elements. Below is the code for the same:
No comments:
Post a Comment