2
I have a
divon my site with the class.zopim, how can I do for when the person clicks on the linkdivclassy.zopimreceive amargin-bottom:20px?
Like this: When the person clicks:
<a id="botão-chat" href="#">ABRIR CHAT</a>
Be added to div the margin-bottom.
Similarly, if the person clicks the link again, the margin-bottom that was added.
Link to a similar question: How to create a link that when clicked changes the value of href=" "?
By the very example @bfavaretto posted, you can use
$('seu elemento').css(...)or$( 'seu elemento' ).addClass( 'classe-com-margin' ) | $( 'seu elemento' ).removeClass( 'class-without-margin' )– Papa Charlie
I don’t know much jQuery. Make your comment a reply @Papacharlie you are the guy.
– Alexandre Lopes
Papa, are you there? rs
– Alexandre Lopes