I need to make a function in jQuery or JavaScript, which finds all items with a particular css class and add a parameter to that class, a different color for example.
I'll put on a button, after clicking the first time, the second time it has to remove this parameter.
<button type="button" id="btn">Clique</button>
<div class="mudar">TEXTO QUE VAI MUDAR DE COR</div>
<div class="mudar">TEXTO QUE VAI MUDAR DE COR</div>
<div class="mudar">TEXTO QUE VAI MUDAR DE COR</div>
<div class="mudar">TEXTO QUE VAI MUDAR DE COR</div>
...