Streaming live at 10am (PST)

Custom Attribute "ondrag" is a reserved name


#1

I'm trying to create a drag and drop experience.
I would like to add:
draggable="true"
ondragstart="drag(event)"
ondrop="drop(event)"
ondragover="allowDrop(event)"
to the appropriate elements. I am able to add all except for "ondrop" which is a reserved name.

Any way around this?

I noticed that I can use the Embed element to add a Div with these attributes. Is that the only solution?


#2

Yes, that is the only solution.


#3

Thank you. Definitely works so its cool.