JSFiddle - React, Tailwind, and code Playground

HTML

<a id="myLink">Click Me </a>
<div id="myDiv"></div>

CSS

div { height: 200px; }

JavaScript

$("#myLink").click(function() { 
               // ^ Attach a function on click event of an element with id="mylink"
      //Change the css of a element with id="myDiv"
      $("#myDiv").css("backgroundImage", "url(http://www.google.com/logos/2012/spring12-hp.jpg)");
                   // Note ^: In jQuery, the parameters with "-" as define that way
                   // But of course .css() supports "-" also, but make a habit of doing in camel-case
    });