Hi folks!
I’m trying to get a button entitled “Start-Resume” to remove a class and add a class, but for some reason all the attributes of the class being added are not being implemented in the final result, such as the color of the text, which should be “red”, rather than “#680b19”.
Here’s my code:
JavaScript:
`
$(document).ready(function(){
$(".start-resume").click(function(){
$(’.time-display’).removeClass(“on”);
$(’.time-display’).addClass(“on”).html(“Ready?”);
});
});
`
HTML Code:
<div class="count-display"> <div id="number">8888888888888888</div> </div>
…
`
#number{
font-size: 55px;
line-height: 50px;
text-align: center;
margin: auto;
font-family: digital-7;
color: #680b19;
}
`
CSS Code:
`
.on{
color: red;
font-size: 55px;
font-family: digital-7;
line-height: 1.85em;
text-align: center;
}
`
What am I doing wrong??? Thanks in advance for your help!