JSFiddle - React, Tailwind, and code Playground

by karim79

HTML

<input value="foo"/>

<input/>

JavaScript

$.fn.doesItTryToDoStuff = function() {
  alert('called');
    return this.each(function() {
       $(this).css("border", "1px solid red"); 
    });
};

$("input").filter("[value='foo']").doesItTryToDoStuff().doesItTryToDoStuff();