$("#dialog").dialog({ dragStop: function(event, ui) { alert($(this).dialog("option","zIndex")); }, });