I have a
div
on my site with the class.zopim
, how can I do when the person clicks thediv
link with class.zopim
receive amargin-bottom:20px
?
Type like this: When the person clicks:
<a id="botão-chat" href="#">ABRIR CHAT</a>
Be added to div
or margin-bottom .
Similarly, if the person clicks on the link again, the margin-bottom that has been added is removed.
Link to a similar question: How to create a link that when clicked changes the value of href=" "?