JSFiddle - React, Tailwind, and code Playground

jquery tipps

by bitstarr

JavaScript

el = $('form');
el.filter(function() { return /dest$/.test(this.name); });

el.is(':visible'); ??
    
    
el = $('#jq-download');

h1 = el.width();
h2 = el.innerWidth();
h3 = el.outerWidth(true); //with margin
h4 = el.css('width');

console.log(h1+' '+h2+' '+h3+' '+h4);


$(el).prepend('#wrap'); //move as first inside wrap
$(el).befor('#wrap'); // move before wrap


el.unbind();
el.bind('mousedown', function(e) {
    console.log(e.target);
    e.stopPropagation(); // stop all other parent eventhandler
    e.stopImmediatePropagation(); // even for the actual element!
    // use with care!
});