I have an image that is linked that is contained by a div. I want to be able to **drag the linked image** to a tinyMCE control without its surrounding DIV.
For whatever reason it's dragging the DIV along with the IMG and A. Is there a way to get it to not drag the DIV. I've tried preventing default ondrag, onmousedown etc. on the DIV, but then nothing drags.
and a couple of other things, but of course I knew none of those would do anything other than prevent dragging of anything within the DIV. Can we see the rest of your code? specially what jquery commands you wrote
以上就是How do you drag a link without its parent div attached?的详细内容，更多请关注web前端其它相关文章！