开发者

datepicker help, how to make the calendar popup?

i'm using jquery 1.5.1 and jque开发者_高级运维ry-ui im trying to create a simple html page with input field and a button that when pushed a calendar will popup.


JS

   $( "#datepicker" ).datepicker({
            showOn: "button",
            buttonImage: "images/calendar.gif",
            buttonImageOnly: true
        });

Markup

<p>Date: <input type="text" id="datepicker"></p>

Reference

http://jqueryui.com/demos/datepicker/#icon-trigger

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜