JSFiddle - React, Tailwind, and code Playground
HTML
<input>
<span>hello world!</span>
JavaScript
$("input").droppable({
drop: function(event, ui) {
alert(ui.draggable.text());
}
});
$("span").draggable();
<input>
<span>hello world!</span>
$("input").droppable({
drop: function(event, ui) {
alert(ui.draggable.text());
}
});
$("span").draggable();