How to run a class in html and javascript?
How do I run
when a button is pressed?Voters
PattanAhmed
@MatthewX Hi,
This is an amazing website explaining about Classes (div) in HTML and JavaScript...
Click here
This is an amazing website explaining about Classes (div) in HTML and JavaScript...
Click here
Hope this helps
Please mark my answer if this helps
SixBeeps
Classes in HTML are different than classes in any other language. Here, they are used for grouping together common elements or groups of elements so that they can be styled or identified in bulk.
Hi! Classes are not the same as
id
s. They can be assigned to multiple elements so they can be identified as a group.Anyways, to get all elements:
um, using
@MatthewXappend
https://www.w3schools.com/jsref/met_node_appendchild.asp
@MatthewX
there ya go
@MatthewXnp!
@MatthewX