Changing the background color of a disabled input field

I am trying to find a way to disable the background color of a disabled input field. I was wondering if someone can help me with this?

This is what I tried, which did not work:

 input[type="text"][disabled]{background-color:red;}

Solution 1:

Try this instead:

input[type="text"]:disabled{background-color:red;}

Source: W3 schools