简体   繁体   中英

jquery DatePicker buttonimage is not working

I am using a jquerydatepicker. But the button image is not showing at all. What may be the problem?

Here is the code I am using:

$('#<%= TextBoxFromDate.ClientID  %>').datepicker({ changeYear: true, yearRange: '-20', showOn: "button",
    buttonImage: "/css/images/icon_cal.png", showAnim: 'slide',
    buttonImageOnly: true
});

EDIT : my image is in rootfolder/css/images folder. and my masterpage is in rootfolder/master folder. I am using datepicker on the master page. Even '../css/images/icon_cal.png' is not working.

试试这个,用您选择的皮肤改变ui-lightness

css/ui-lightness/images/icon_cal.png

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM