i have tow pages one is mange.aspx
and other is pop-up.aspx
in mange.aspx i load the other page with ajax and display it in jquery ui Dialog
my problem is when i load page the jquery ui Datepicker
inside that page not working
this is my code
$(function () {
$("#datepicker").datepicker({
showOn: "button",
buttonImage: "../images/calendar-icon.png",
buttonImageOnly: true
});
$('#Add').click(function () {
var $dialog = $('<div id="MyDialog"></div').appendTo('body')
.load("../Pop-up.aspx #pop-up")
.dialog({
position: 'center',
width: 550
// code .....
});
});
});