开发者

Jquery bring up date picker from text field

http://offline.raileisure.com/

I need to be abl开发者_如何学运维e to bring up the datepicker from the text field as well as the little icon..

Any ideas ?

Thanks Lee


change

$('#bydate').datepicker({
        showOn: "button",

to

$('#bydate').datepicker({
        showOn: "both",


JQuery's datepicker?

http://jqueryui.com/demos/datepicker/


If you're willing to use a different plugin, I suggest http://keith-wood.name/datepick.html


Add a onclick handler to show the calendar with Jquery UI.


Just looked at the site, you need to bind a click event to your image and then use the show method for the datepicker:

$(".ui-datepicker-trigger").click(function(){
    $(".hasDatepicker").datepicker("show");
});
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜