Test Case Boilerplate

Fork this way...

HTML

<script src="http://code.jquery.com/jquery-1.7b1.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css">
<span id="test">Click me!</span>

<div id="popup" style="display:none">
    try to move this popup
</div>

JavaScript

$('#test').live('click', function() {
    $('#popup').dialog();
});