I'm sorry but I'm not sure you're going about this the right way.
1. you are trying to use the datepicker in a non-standard way, which I suppose is possible, but thats not the way it's meant to be used. - It's generally attached directly to a form input field of some kind.
2. - why datepicker().datepicker("show") ?
3. .change() is only for inputs, textareas and selects.
perhaps state what you are trying to accomplish and I can give you a basic example?
Ill give you a basic example.
<link href="jq/jquery-ui.css" type="text/css" rel="stylesheet" />
Choose Date: <input type="text" id="d1">