JSFiddle - React, Tailwind, and code Playground
by zupa
HTML
<div>
hello <span class="first">.</span>
<br />
hello <span class="second">.</span>
</div>
JavaScript
jQuery.fn.extend({
jQuery: function(arg) {
return $(arg, this);
},
$: function(arg) {
return $(arg, this);
}
});
// Using jQuery()
jQuery('div').jQuery('.first').text('world');
// Using $()
$('div').$('.second').text('world');