7. Let's Focus()


#1


The box, I assumed, would have a red outline when clicked. But, when I click, the outline is grayish.
It said to put outline-color red in the code because i'm using Mozilla Firefox but I've put it in both the CSS and the jQuery (at separate times) and it still came up a gray outline.


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


#2

what is func ? Here you are adding css so you need to use .css() not .func()


#3