I am trying to use this calendar input javascript, but I can't understand how to make the day display before the month. http://www.dynamicdrive.com/dynamicindex7/jasoncalendar.htm Can anyone else figure this out? Thanks! Joel
You need to modify calendarDateInput.js file. Replace this @ lines 568-583: writeln('<select class="calendarDateInput" id="' + DateName + '_Month_ID" onChange="' + DateName + '_Object.changeMonth(this)">'); if (!Required) { var NoneSelected = (DefaultDate == '') ? ' selected' : ''; writeln('<option value=""' + NoneSelected + '>' + UnselectedMonthText + '</option>'); } for (var i=0;i<12;i++) { MonthSelected = ((DefaultDate != '') && (eval(DateName + '_Object.picked.monthIndex') == i)) ? ' selected' : ''; writeln('<option value="' + i + '"' + MonthSelected + '>' + MonthNames[i].substr(0,3) + '</option>'); } writeln('</select>' + String.fromCharCode(13) + '</td>' + String.fromCharCode(13) + '<td valign="middle">'); writeln('<select' + InitialStatus + ' class="calendarDateInput" id="' + DateName + '_Day_ID" onChange="' + DateName + '_Object.changeDay(this)">'); for (var j=1;j<=eval(DateName + '_Object.picked.dayCount');j++) { DaySelected = ((DefaultDate != '') && (eval(DateName + '_Object.picked.day') == j)) ? ' selected' : ''; writeln('<option' + DaySelected + '>' + j + '</option>'); } writeln('</select>' + String.fromCharCode(13) + '</td>' + String.fromCharCode(13) + '<td valign="middle">'); Code (markup): With this @ lines 568-583: writeln('<select' + InitialStatus + ' class="calendarDateInput" id="' + DateName + '_Day_ID" onChange="' + DateName + '_Object.changeDay(this)">'); for (var j=1;j<=eval(DateName + '_Object.picked.dayCount');j++) { DaySelected = ((DefaultDate != '') && (eval(DateName + '_Object.picked.day') == j)) ? ' selected' : ''; writeln('<option' + DaySelected + '>' + j + '</option>'); } writeln('</select>' + String.fromCharCode(13) + '</td>' + String.fromCharCode(13) + '<td valign="middle">'); writeln('<select class="calendarDateInput" id="' + DateName + '_Month_ID" onChange="' + DateName + '_Object.changeMonth(this)">'); if (!Required) { var NoneSelected = (DefaultDate == '') ? ' selected' : ''; writeln('<option value=""' + NoneSelected + '>' + UnselectedMonthText + '</option>'); } for (var i=0;i<12;i++) { MonthSelected = ((DefaultDate != '') && (eval(DateName + '_Object.picked.monthIndex') == i)) ? ' selected' : ''; writeln('<option value="' + i + '"' + MonthSelected + '>' + MonthNames[i].substr(0,3) + '</option>'); } writeln('</select>' + String.fromCharCode(13) + '</td>' + String.fromCharCode(13) + '<td valign="middle">'); Code (markup):