I want to show a datepicker only on button click
$(\"#day\").datepicker();
the above l
You can do this with the built-in showOn function:
showOn
$( "#hiddenField" ).datepicker({ showOn: "button", buttonText: "day" });
JSFiddle: http://jsfiddle.net/Uv8V4/
Reference: http://jqueryui.com/datepicker/#icon-trigger