3

I want to change "Today" button text in Jquery datepicker to "Present". and also customise the functionality

Any thoughts please

3
  • Do you have an example? I don't recall seeing any button in the default datepicker: jqueryui.com/datepicker Feb 23, 2015 at 20:57
  • Sure please click on this link jqueryui.com/datepicker/#buttonbar
    – hKrosuri
    Feb 23, 2015 at 21:14
  • 1
    I got it it's currentText ="Present" code example :$('.date-picker').datepicker( { changeMonth: true, changeYear: true, showButtonPanel: true, currentText: 'present', closeText : 'Close', dateFormat: 'MM yy', }
    – hKrosuri
    Feb 23, 2015 at 21:18

1 Answer 1

4

Answer from the comment. It may be helpful to some people

currentText: "Present"

code example:

$('.date-picker').datepicker({
    changeMonth: true,
    changeYear: true,
    showButtonPanel: true,
    currentText: 'present',
    closeText : 'Close',
    dateFormat: 'MM yy',
});

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.