6. adding and removing classes


#1



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


i have followed the instructions but the code still is not working. it keeps saying " Please follow the instructions on the Full Preview page to test your code. "


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


#2

HI this line

$(this).FUNC('highlighted');

where you put .FUNC you should put .addClass


#3

thanks a lot! its working now :slight_smile:


#4

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.