JSFiddle - React, Tailwind, and code Playground

by LtDan__

HTML

<body style="padding:10px;">        
            <div id="container" style="border:solid 1px black;background-color:gray;display:inline-block;width:250px;height:200px;">
                <span>Quantity:</span><input type="text" value="10" size="5" /><input type="button" value="Add to Cart" />
            </div>
    </body>
</html>

JavaScript

$(function(){
                $("#container").hover(
                  function () {
                    $(this).css('background-color','blue');
                  }, 
                  function () {
                    $(this).css('background-color','gray');
                  }
                );
            });