Let's .focus()!


#1



what is wrong with my code???

Oops, try again. It looks like your input field's outline-color isn't red when it gains focus. Check the Hint if you need help!


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


#2

I tried
$(this).css("outline-color","#ff0000");

but .... :frowning:


#3

input is not a id name
so remove #
should be
$("input").focus(function(){


#4

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