I made a search bar with search icon. I want this, when I click the #forminput, #search will return white; and after I click another object, #search will return lightgray color. How can I do this? My codes:
$(document).ready(function(){
$("#forminput").click(function(){
$("#search").css("color", "white");
});
});
Have a nice day.