JSFiddle - React, Tailwind, and code Playground
by Nick Iaconis
HTML
<p class="wow">This is a test! Change the color name in the textbox!</p>
<form name="Form1">
<input type="text" name="T1" value="black" onchange="ChangeCSSRule('color',this.value)">
</form>
JavaScript
function ChangeCSSRule(xElement,xValue) {
var strCSS = 'cssRules';
if(document.all) {
strCSS = 'rules';
}
document.styleSheets[0][strCSS][0].style[xElement] = xValue;
}