Try reordering your scripts, it might be causing the problem. You had jQuery in multiple times, this is more than likely the cause of your problems.
Also you should try formatting your code to make it clearer what is going on. For example i have put the script type
tags at the start for easier readability.
Have you specifically put Cancel
with no quotes in your dialog? Ive corrected this below.
<script type="text/javascript" src="Scripts/jquery-1.7.2.min.js" ></script>
<script type="text/javascript" src="Scripts/jquery-ui-1.8.21.custom.min.js"></script>
<!--jQuery again here?--><script type="text/javascript" src="jsdatepick-calendar/jsDatePick.jquery.min.1.3.js"></script>
<script type="text/javascript" src="jquery/fadeslideshow.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#click').click(function(){
$( "#dialog:ui-dialog" ).dialog( "destroy" );
$( "#dialog-confirm" ).dialog({
resizable: false,
height: 140,
modal: true,
buttons: {
"Ok": function() {
$('#form1').submit();
},
"Cancel": function() {
$( this ).dialog( "close" );
}
}
})
})
});
</script>