title: Change the background color of input text based on conditional value
body: <p>I am trying to create an input text field, and when values like 1, 2, 3 are typed in the text field the background color of the text field will change to Red, Yellow, and Green, respectively. I have find some clue <a href="https://stackoverflow.com/questions/39540302/how-to-change-the-background-color-of-an-input-field-when-text-is-entered">here</a>
  but unable to get my desired output (Conditional format). Not that great in js, so any help will be highly appreciated</p>