6
I wanted to know how I can via jquery remove all css styles from a certain html element. Example:
html
<h1 class="titulo">Título</h1>
css
.titulo{
padding: 5px;
color: #424255;
margin-bottom: 5px;
border-bottom: 1px solid #424255;
}
Wanted something in jquery that could remove css from a certain element.
And not only restricted to classes as in the previous example.
If only in html:
<h1 style="padding: 5px; color: #424255; margin-bottom: 5px; border-bottom: 1px solid #424255;">Título</h1>
I was wondering how can I remove css style in these types of situation
$("#elemento").toggleClass("class");
doesn’t work? (I used this command to make a clock flash, second by second, when it came to a minute)– Gustavo Cinque
in this case I didn’t want to change the classes of an object, I wanted to remove the css that an html element has
– DiChrist
I understand , but with the
toggle
vc disables/activates the class, does not change the class itself, only says when the object uses it or not.– Gustavo Cinque