SyntaxFix
Write A Post
Hire A Developer
Questions
you can also use pure js to accomplish this like the old ways with jquery
try this if you want a simple way
document.getElementById("myID").classList.add("show-example");