As usual you can drop selected text from anywhere into inputs. I want to do something when cursor into an input. ex: if I selected some text then I dragged into an input, but I don't dropping into that input. But input making the cursor and the cursor icon has been changed to plus icon, I want to do function at that time!
$("input").on("beforeDROP", function(){
//do something
});
form input {
font-size: 16px;
}
form {
margin: 0 auto;
width: 100%;
text-align: center;
}
<form>
<p>some text</p>
<input type="text" />
</form>
