JSFiddle - React, Tailwind, and code Playground

by guest271314

HTML

<div></div>
<span></span>

CSS

div {
    width : 50px;
    height : 50px;
    background : blue;
}

span {
    display : block;
    width : 50px;
    height : 50px;
    background : yellow;
}

JavaScript

$(function() {
    $("div").on("click", function(e) {
      console.log(e);
    });
    $("span").on("mousedown", function(e) {
      console.log(e);
    });
    $.each($("*"), function(index, value) {
        if ($._data($(value)[0], "events") != undefined) {
             console.log($._data($(value)[0], "events")
                         , window.jQuery().jquery); 
        };
    });
    
})