Disable the text drag-able from one text box to other

by manoj

HTML

<div  ondragstart="event.dataTransfer.setData('text/plain', '')">
  This text <strong>may</strong> be dragged.
</div>
<div  >
  This text <strong>may</strong> be dragged.
</div>
<p>
    TextBox1: <input type="text" id="TextBox3" />
       TextBox1: <input type="text" id="TextBox3" />
</p>

JavaScript

$(document).on("dragstart", "input:text", null,  function (evt) {
 
       evt.originalEvent.dataTransfer.setData('text/plain', '');
    });

  $(document).on("dragstart", "div", null,  function (evt) {
 
       evt.originalEvent.dataTransfer.setData('text/plain', '');
    });