How to select multiple ids that have a certain class in CSS
<p>All I want to do is select multiple elements and with a certain class so that I don't have redundancy in my CSS file </p>

<pre><code> #resp36, #physicalResp36, #nonResp36, #physicalNonResp36 .fieldStateError {
        border: 1px solid #d6dbdc!important;
 }
</code></pre>

<p>But the last element does not get the stlye while the others do. And I am not certain why that is happening.</p>

<p>Thank you in advance!</p>