JSFiddle - React, Tailwind, and code Playground

HTML

<div id="video"></div>

CSS

#video{
    width: 50px;
    height: 50px;
    background: red;
}

JavaScript

var $video = $("#video");

function Test()
{
    var $ve = $video.data("events");

    if ($ve != null && typeof($ve.loadedmetadata) !== undefined)
        alert("has loadedmetadata event");
    else
        alert("event not found");

    $video.bind("loadedmetadata", function(){});
}

Test();
Test();