I can't click on the element, but the code seems to be correct?


#1

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

The code appears to be correct, but it doesn't let me click on the element - what is wrong?

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


#2

$(this).addClass('hightlighted'); // check spelling **highlighted**

#3

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