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');
精彩评论