I need to change the style of an element when it is clicked and if it clicks it returns to the color it was in (like an "advanced search"). I have the following code:
<a href="" class="corCinza" ng-click="exibirForm = !exibirForm">...</a>
<div class="filtro" ng-show="exibirForm">
<form ... />
</>
When I click on <a>
it has to stay with corAzul and open the div with the form. If I click again it closes the div of the form and returns the shape.
The form is already working, but I could not change the color.
I tried using ng-class as a "tutorial" but it did not work.
Can someone help me?
P.S .: I only "program" html and css. The most I coded was a simple helloWorld in JS.