3
I am learning drag and drop in Javascript and I’m not really understanding what the property is for DataTransfer
, for example her syntax would be something like:
event.dataTransfer.setData("text/plain", ev.target.id);
It would be to transfer drag data, but transfer what data and where? in the above example I am setting a data with the setData
, but this data will go where to a variable? Already the part text/plain
are keywords that I should use that are defined in the language itself of Javascript or I can create my own?
Thanks a lot, pal! :)
– marquinho