adding multiple classes has no effect
adding multiple classes has no effect
style
.blue
{
color: blue;
}
.red
{
color: red;
}
.red.blue
{
color: blue;
}
.blue.red
{
color: red;
}
<script src="
https://code.jquery.com/jquery-1.10.2.js"></script>
<p></p>
<script>
$('p').text('i can finally change color');
$('p').addClass('red blue');
</script>
How come text is always red?
Topic Participants
gunitinug
gautamx07
jtara-jquery
jakecigar