How to display pop-up message after get coordinate xy of an image using jquery?
<p>I have 1 problem..I had to do drag n drop an image..then get the position of image after drop...Then, when I drag it and get the position, I need to display a pop up message using jquery..Can anyone help me? Please show me the demo and clear solution because Im new in jquery..Thank you guys!!</p>

<p>This is my code of dra,drop n get coordinate..now , I want to add the pop up message after get the position..In the pop up message, I want to add -->name your location and can be saved in database.</p>

<pre><code>   $('#dragThis').draggable({
    cursor: 'move',        // sets the cursor apperance
    containment: '#dragThis2',
    drag: function() {
    var offset = $(this).offset();
    var xPos = Math.abs(offset.left);
    var yPos = Math.abs(offset.top);
    $('#posX').text('x: ' + xPos);
    $('#posY').text('y: ' + yPos);
    },
    stop: function(event, ui) {

    // Show dropped position.

    var Startpos = $("#dragThis").position();
    var Stoppos = $(this).position();
   //        
    $("#dragThis").val((Stoppos.left - Startpos.left));
    var left = Math.abs(Stoppos.left);
    var top = Math.abs(Stoppos.top);
    $('#posX').text('left: ' + left);
    $('#posY').text('top: ' + top);
    }

    });
</code></pre>

<p>How to add the pop up message in my code?Please...anyone?</p>
