开发者

jQuery uidatepicker buttonimage not working

I cannot get the buttonimage for the uidatepicker plugin for jquery to work:

$( "#datepicker" ).datepicker(
      {        
          dateFormat: 'dd-mm-yy',
          buttonImage: "/images/calendar.gi开发者_JAVA百科f",
      }
);

I have the image in the right location (in a subdirectory named images)...what am I doing wrong?

Here is the link:

http://dev.speechlink.co.uk/David/sixthiteration/performanceanalysis.php


Add showOn: "both" and buttonImageOnly: true to stop the image looking like a button.


That should work fine. But you can try this alternative.

$("#datepicker").datepicker( "option", "buttonImage", '/images/calendar.gif');
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜