I want to change the color of the input element that is in focus. I've tried with this but it doesn't seem to be working.
HTML
<li>
<input id="text1" onfocusout="removeColor()"onfocus="changeColor()" class="slut" value="{{Number}}">
</li>
<li>
<input id="text1" onfocusout="removeColor()"onfocus="changeColor()" class="slut" value="{{Priority}}">
</li>
JS
function changeColor() {
$(this).style.backgroundColor = "red";
};
function removeColor() {
$(this).style.backgroundColor = "white";
};