issue when dragging an image using javascript (jQuery) -


I was trying to create a dragable div with an image I could draw a div with some text , But whenever I am not working properly by dragging an image, the text changes. If you change the image with text, then it will be able to drag the text to the window, but if we replace the text with an image it does not work because now it is

Please

Thank you for this idea

I have just tested myself, You have to:

  $ ('# dv'). Musudown (function (e) {e.preventDefault (); x1 = e.pageX - parseInt ($ ('# dv'). CSS ('left'); Y1 = e.pageY - parseInt ($ ('# dv '). CSS (' top ')); drag = true;}  

This browser will stop drag-and-drop functions.

HTH


Comments