admin管理员组文章数量:1410730
I cannot get the buttonimage for the uidatepicker plugin for jquery to work:
$( "#datepicker" ).datepicker(
{
dateFormat: 'dd-mm-yy',
buttonImage: "/images/calendar.gif",
}
);
I have the image in the right location (in a subdirectory named images)...what am I doing wrong?
Here is the link:
.php
I cannot get the buttonimage for the uidatepicker plugin for jquery to work:
$( "#datepicker" ).datepicker(
{
dateFormat: 'dd-mm-yy',
buttonImage: "/images/calendar.gif",
}
);
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
Share Improve this question edited Aug 25, 2011 at 0:44 user906568 asked Aug 25, 2011 at 0:02 user906568user906568 4712 gold badges9 silver badges21 bronze badges 5-
Try adding
buttonImageOnly: true
to it. – mnsr Commented Aug 25, 2011 at 0:06 - doesn't work-plus I want both to be triggers...:/ – user906568 Commented Aug 25, 2011 at 0:07
- what browser are you using? In IE, does it show the [X] image holder where the button should be? Can you paste the HTML you've used for the datepicker, please? also, does the datepicker show when you click on the textbox? – mnsr Commented Aug 25, 2011 at 0:26
- I am using safari and firefox, in both the images do not appear. See edit for the link. – user906568 Commented Aug 25, 2011 at 0:36
- Do you still have the problem? I could see the button image in Firefox – Vini Commented Aug 25, 2011 at 1:07
2 Answers
Reset to default 6Add 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');
本文标签: javascriptjQuery uidatepicker buttonimage not workingStack Overflow
版权声明:本文标题:javascript - jQuery uidatepicker buttonimage not working - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745036151a2638797.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论