This topic is locked

Date picker

7/17/2012 12:47:42 PM
PHPRunner General questions
author

Hi
How can I change the months on the top of the date picker to have a nemeric value first, i.e. (1) January, (2) February, (3) March .....
Thanks
Richard

C
cgphp 7/17/2012

In the "Javascript onload" event of add/edit page, enter the following code

$("#monthvalue_YOURDATEFIELDNAME_1 option[value!='']").each(function(month, value) {

$(this).text("(" + (month+1) + ") " + $(this).text());

});


Replace YOURDATEFIELDNAME with the name of the date field.