Hi,
Onset would like to thank Anand for his prompt help.
I am here once again asking about weird behaviour of jquery dialog.
I have used this exact code in other web application and it works very well.
For some reason, it does not work now
Please help...here is my code
<script type="text/javascript">
$(document).ready(function() {
$('#dvVouchDialog').dialog({
autoOpen: false,
modal: true,
width: 'auto',
show: {effect: "blind",duration: 1000},
hide: {effect: "explode",duration: 1000},
title: "Voucher Details",
buttons: {
'Approve': function () {$(this).dialog('close');},
'Reject':function(){$('#RejDlg').dialog("open")}
}
});
$('#btnSelect').click(function () {dialogDiv.dialog('open');});
});
</script>
when I remove the autoOpen:false, it works but the dialog appears automatically when the page loads...appreciate your input