Professional Documents
Culture Documents
CSS JS
CSS JS
focus(function(){
$(this).css({"background":"rgb(82, 179, 126)"})
})
$(".input").blur(function(){
$(this).css({"background":"transparent"})
})
input:focus {
background: rgb(168, 168, 168);
}
<input placeholder="input cambio de color" type="text" name="" value="">
////////////////////////////////////////////////////////////////////////////