79473988

Date: 2025-02-27 21:49:48
Score: 0.5
Natty:
Report link

Here is a simple 1 line answer for jQuery.

$('#sourceID').on('dragstart',function(e) {e.originalEvent.dataTransfer.setData('text/plain',$(this).text())});
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Cymro