JSFiddle - React, Tailwind, and code Playground
by zhukovroman
HTML
<div class="btn">btn1</div>
<div class="btn">btn2</div>
<div class="cll">CLL</div>
CSS
.btn {background: #ccc; margin: 0 10px 10px 0; }
JavaScript
$.fn.btn = function(){
var th = this;
$('.cll').click(function() {//как сюда привязать th?
th.append('test');
});
};
$('.btn').on('mouseenter',function() {
$(this).btn();
});