JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://raw.github.com/eligrey/color.js/master/color.js"></script>
<input type="number" placeholder="Enter the number of days" min="1" max="40" />
<div id="desk"></div>

CSS

input[type=number] {
    width: 250px;
}
#desk {
    height: 100px;
}

JavaScript

$("input[type=number]").change(function() {
   
    $("#desk").css("background-color", "rgb(0%, 100%, 0%)");
});