displaying a datepicker on custom button click event

displaying a datepicker on custom button click event

hi
i wanted to show a datepicker on a custom click event.  i can't use datepicker button or image due to lack of space and certain other restrictions.

i have created a custom button with a custom look and feel. i want the click event on this button to trigger datepicker display.

i tried to use

 $("#datepick").datepicker();

but this is merely associating  the textfield datepick with datepicker, its not showing it..  rather we have to click on textfield after the button click to show the datepicker.

i also tried 

 $("#datepick").datepicker( 'show' );

but this also did not do any changes..

can anyone tell me any possible way for getting this event..