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.

1 Answer 1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks a lot, i wasn't picky enough to look at the demos tabs... thanks anyway...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.