7. Let's .focus()


#1


Running this code is somehow turning the input box blue. Can't for the life of me figure out why. I even checked the hex code here http://www.color-hex.com/ and it says #ff0000 is red...


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


#2

multiple word properties are always hyphenated in CSS.

'outline-color'

There are other ways to write the same general rule.

.css({'outline-color': '#ff0000'})

.css({outlineColor: 'red'})

and so on.


#4

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