Where did i lost the plot?


#1

I follow the hint but still lost somewhere.

$(document).ready(function(){

$('#text ').click(function(){

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

    });



});

#2

Hi Skhanal1,

First, you should remove the space at the end of #text in your selector. The computer might confuse it as being part of the id, and so not select the correct element.

Then,

You need to replace FUNC with the appropriate function name.

Good luck with the rest of the course, and please let me know if you're still having trouble with this exercise! :slightly_smiling:


#4

finally found solution replace FUNC with addClass.
Thanks for your help