JSFiddle - React, Tailwind, and code Playground
HTML
<button id="clickme">Click me</button>
JavaScript
$("#clickme").click(function(e){
var i_need_this=e.target;
alert(i_need_this); //nice!
$.ajax({
url:'http://echo.jsontest.com/',
type: 'GET',
success: function( data, status, jqXHR ) {
alert('success');
//console.log( ??? ); Get i_need_this from somewhere?
}
});
})