jQuery UI - can you drag all types of DOM elements?

jQuery UI - can you drag all types of DOM elements?

My question is can you drag elements in the DOM other than a DIV.
I can set divs to draggable and they work fine.
I also was able to do it with a UL, and li.

However if I throw a button on the page and set it to draggable it doesn't work....same for  a text field.
I am wondering if it is because the default behavior for a button is to submit, and that it is firing that event off instead of just allowing me to drag it around?  I tried to do a preventDefault on the button to no avail.

I am just wondering where I can find a list of supported elements for Drag and drop.

BTW...if I wrap the button or text field in a div it works fine, but I would like to actually be able to drag  form controls if possible and am not sure how to do it.  I have Googled for it and looked on here as well with nothing found.  jQuery docs say you can do the markup with a div...however my UL and LI were not in divs...so I am not sure of the disconnect?
Thanks










    • Topic Participants

    • trk69