Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JQUERY datepicker calendar, how can I rename the “today” button to “present”

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

Any thoughts please

like image 907
hKrosuri Avatar asked Nov 21 '25 00:11

hKrosuri


1 Answers

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',
});
like image 99
Linga Avatar answered Nov 24 '25 08:11

Linga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!