how to get the value of the image when drop from the droppable area?
<p>i have a drag and drop code here from jquery i wanted to get the value of the image then insert it to the database and when the image is remove from the droppable area then update and remove the image value.. how can i do it?
here's the code....</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;jQuery UI Droppable - Default functionality&lt;/title&gt;
    &lt;link rel="stylesheet" href="../../themes/base/jquery.ui.all.css"&gt;
    &lt;script src="js/jquery-1.4.4.js"&gt;&lt;/script&gt;
    &lt;script src="js/jquery.ui.core.js"&gt;&lt;/script&gt;
    &lt;script src="js/jquery.ui.widget.js"&gt;&lt;/script&gt;
    &lt;script src="js/jquery.ui.mouse.js"&gt;&lt;/script&gt;
    &lt;script src="js/jquery.ui.draggable.js"&gt;&lt;/script&gt;
    &lt;script src="js/jquery.ui.droppable.js"&gt;&lt;/script&gt;
    &lt;link rel="stylesheet" href="js/demos.css"&gt;
    &lt;style&gt;
    #comment { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
    #draggable1 { width: 100px; height: 100px; padding: 0.5em; float: left; margin: 10px 10px 10px 0; }
    #droppable { width: 500px; height: 200px; padding: 0.5em; float: left; margin: 10px; background: silver;}

    &lt;/style&gt;
    &lt;script&gt;
    $(function() {
        $( "#comment" ).draggable();
        $( "#draggable1" ).draggable();
        $( "#droppable" ).droppable({

            drop: function( event, ui ) {
            $( this )
            .find( "p" )
                .html("Dropped!")
            },
            out: function(event, ui) {
            $(this)
            .find( "p" )
                .html("Drop Node Here!");   
            }
        });
    });


    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;div class="demo"&gt;

&lt;div id="comment" class="ui-widget-content"&gt;
    &lt;img src="images/signup.png" id="1"&gt;
&lt;/div&gt;
&lt;div id="draggable1" class="ui-widget-content"&gt;
    &lt;img src="images/signup.png" id="2"&gt;
&lt;/div&gt;



&lt;div id="droppable" class="ui-widget-header"&gt;
    &lt;p&gt;Drop Node here&lt;/p&gt;
    &lt;?php
        $comment = "#comment";
        $drop = "#droppable";
        $dropped = "dropped";
        require_once("includes/connection.php");

        require_once("includes/close.php");
    ?&gt;
&lt;/div&gt;

&lt;/div&gt;&lt;!-- End demo --&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
