7. The input turns blue, not red


#1

I used this code in IE but it doesn't work:

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

The error message is: Oops, try again. Please follow the instructions on the Full Preview page to test your code.

When I open the Full Preview, and i hover the input, it became Blue but not red.


7 Let's .focus()! passed in IE
#2

@mmango1970 You need to click on the <input>, not hover.


#3

done. It works! I don't know why, but i was convinced that it should become red, while #ff0000 is black. Thanks. Sorry for my enaglish.