SyntaxFix
Write A Post
Hire A Developer
Questions
An easy way of doing this is to use JavaScript like so:
element.addEventListener('click', (e => { e.preventDefault(); element.style = '<insert CSS here as you would in a style attribute>'; }));