I have the following initialization code for datepicker, but the Choose Date link is displayed by default, not the image. This is in the MVC project, but it should not affect anything as far as I know.
$(function () {
$(".date-picker").datePicker({
showOn: 'both',
dateFormat: 'dd-mm-yy',
changeMonth: true,
changeYear: true,
showOn: 'button',
buttonImage: '<%= Url.Content("~/Content/images/date_picker2.gif") %>',
});
The presented parameter is buttonImageas follows:
buttonImage: '/Content/images/date_picker2.gif',
A similar img tag displays the image correctly:
<img src='<%= Url.Content("~/Content/images/date_picker2.gif") %>' />
Profk source
share