Getting dialog title from droppables?

Getting dialog title from droppables?


Hey guys,
I've got a little bit of a chain of UI things going on, namely a
draggable that can be dropped on one of several droppables, which pops
up a dialog with a slider in it. What I intend to do is to give the
dialog a title from whichever droppable the user drops on. It seems
that the demo getter/setter on the jQuery UI could do the trick, but I
can't quite wrap my head around how I'd go about this.
The code I've got looks like this right now:
<script type="text/javascript">
$(function() {
         $("#slider-range-min").slider({
            range: "min",
            value: 1,
            min: 1,
            max: 10,
            slide: function(event, ui) {
                $("#amount").val(ui.value);
            }
        });
        $("#amount").val($("#slider-range-min").slider("value"));
         $("#status").dialog({
                             autoOpen: false,
                             });
         $("#draggable").draggable();
         $("#droppable, #droppable2").droppable({
                drop: function(event, ui) {
                    $("#status").dialog("open");
                }
         });
});
</script>
How would people here go about it?
Thanks a lot,
Gabe