Modaler Dialog abfragen?

Ich will das:

http://jqueryui.com/demos/dialog/#modal-message

zu geschehen, wenn Sie auf ClickMe klicken.

Wie macht man das?

<script type="text/javascript">
$(document).ready(function() {
$('div.thedialog').dialog({ autoOpen: false })
$('#thelink').click(function(){ $('div.thedialog').dialog('open'); });
}
    </script>
</head>
<body>
<div id="thedialog" title="Download complete">
    <p>
        <span class="ui-icon ui-icon-circle-check" style="float:left; margin:0 7px 50px 0;"></span>
        Your files have downloaded successfully into the My Downloads folder.
    </p>
    <p>
        Currently using <b>36,% of your storage space</b>.
    </p>
</div>
<a href="#" id="thelink">Clickme</a>

nichts passiert

Antworten auf die Frage(3)

Ihre Antwort auf die Frage