开发者

datepicker help, how to make the calendar popup?

开发者 https://www.devze.com 2023-02-19 16:19 出处:网络
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

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

精彩评论

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