What am I missing?


#1


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


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


#2

Since we are adding a class, all we need is the name, and not the selector.

addClass('highlighted')

#4

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