6.Adding and removing classes


#1


https://www.codecademy.com/courses/web-beginner-en-v6phg/1/1?curriculum_id=50a3fad8c7a770b5fd0007a1#


$(document).ready(function() {
    $('#text').click(function() {
        $('#text').addClass('highlighted');
    });
});


I'm having trouble figuring out were i went wrong, any help is greatly apprciated


#2

your code is fine. Did you click #text in full screen example after pressing save and submit?


#3

Yes i did click it but it still doesnt work, the following if a screenshot of the whole page (if that helps)


#4

Dont worry, i figured it out, i kept clicking the box saying I'm highlighted but i was supposed to click the box saying highlight me too

thanks anyway for your help


#5