I snap to check if the input has focus to add color to the back surface. However, when I delete the mouse and focus on another input, it no longer removes the focus; it actually remains with focus! how can i remove backgound from the first!
Fullname: <input type="text" name="name"><br>
Email: <input type="text" name="email">
How to check if a class test exists
I am binding the following if statement without working for some reason. it may be something wrong with my code that I cannot determine for some reason!
$(document).ready(function(){
$("input").focus(function(){
$(this).css("background-color", "#f4fcef");
});
});
I would approve it if you can check this out for me or tell me what happens with the wrong code above?
source
share