JSFiddle - React, Tailwind, and code Playground
by lollero
HTML
<img id="ball" src="http://www.dummyimage.com/200x100/333/444" alt="" />
<input id="throw" type="button" value="click" />
<div id="catch"></div>
JavaScript
$('#throw').on("click", function(){
$("#catch").html( $('#ball').attr('src') );
});