JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="html" class="inp" disabled="true" />

CSS

input.inp[disabled=true] {
    background:#fff000;
}

JavaScript

$('<input class="inp" type="text" value="jquery" />').prop('disabled', true).appendTo('body');