0

I want to create a Datechooser, but I want a button near the text field and when I click the button, the Datepicker should show up, but selected date should be in the text box.

How can I do this.

srisar
  • 1,495
  • 5
  • 18
  • 27

1 Answers1

2

Try jQuery UI DatePicker.

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

Demo from jQuery UI site: http://jqueryui.com/demos/datepicker/#icon-trigger

naveen
  • 53,448
  • 46
  • 161
  • 251