I need help with the following code. I want to be able to change the background color of a div with the class "target_bg" from red (default) to green every time someone enters or types text into the input field.
<div class="target_bg"></div>
<input placeholder="Search for Restaurants..."
class="search_field" name="" type="text">
I have been looking for a solution, but so far I have only found methods to change the background of the input field itself.