diff --git a/html/script.js b/html/script.js index 95473ce..37f0b95 100644 --- a/html/script.js +++ b/html/script.js @@ -132,7 +132,8 @@ const renderSelectInput = (item) => { options.forEach((option, index) => { const isDefaultValue = item.default == option.value; - div += ``; + const bgColor = option.bgcolor ? `style="background-color: ${option.bgcolor}"` : false; + div += ``; if (isDefaultValue) { formInputs[name] = option.value; }