开发者

jQuery uidatepicker buttonimage not working

开发者 https://www.devze.com 2023-03-31 02:24 出处:网络
I cannot get the buttonimage for the uidatepicker plugin for jquery to work: $( \"#datepicker\" ).datepicker(

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

精彩评论

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

关注公众号