JSFiddle - React, Tailwind, and code Playground

by Trey Hunner

HTML

<div id="elementId"></div>

JavaScript

jQuery.fn.demo = function() {
    return this.each(function() {
        var obj = jQuery(this);
        alert($(obj).css("visibility"));

    });
}
jQuery(document.getElementById('elementId')).demo();