JSFiddle - React, Tailwind, and code Playground
by paska
HTML
<div>
<span>
</span>
Bye!
</div>
JavaScript
$.fn.fnBar = function() {
$(this).html("hello!");
//return $(this);
return this;
};
$("div")
.find("span")
.fnBar()
.end()
.css("color", "red");