This instruction is included but I’m a little puzzled by it.
Remember: You aren’t selecting anything, you are modifying your element. This means that you do not need # or . before your class.
It seems to say that you don’t need a # before the item ID or a “.” before the class name if you’re not selecting something and just modifying it.
This works:
$(document).ready(function() {
$('#text').addClass("highlighted");
});
This does not work:
$(document).ready(function() {
$('text').addClass("highlighted");
});
Returns error: Oops, try again. It looks like your #text doesn’t have the class .highlighted. Check the Hint if you need help!