Let's .focus!


#1


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


My box color does not change to red.


$(document).ready(function(){
    $('input').focus(function(){
        $('this').css('outline-color','#FF0000');
});
});


#2

Ok, I understood my mistake. I should apply the css on 'input' not on 'this'.


#3

you can use this, but then as keyword. so no apostrophes.


#4

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