Trying to learn jQuery and I'm on the verge of giving up !! Spend 2 days to get a dialog box to display!
Can anyone help why this code is not working? I just welcome the top of the page!
JQuery
<script src="js/jquery-1.5.2.min.js" type="text/javascript"></script>
<script src="js/jquery.ui.core.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
var $dialog = $('#dialog')
.dialog({
autoOpen: false,
title: 'Basic Dialog'
});
$('#opener').click(function() {
$dialog.dialog('open');
return false;
});
});
</script>
HTML
<div id="dialog">hello</div>
<button id="opener" style="margin-left:66px;margin-top:3px;font-size:11px;width:60px">Click</button>
source
share