In jsp(using jsf tag libraries):
onfocus=“javascript:return dhtmlCalendar(this.name);”
and the script is:
function dhtmlCalendar(formField) {
var mCal = new dhtmlXCalendarObject(formField);
mCal.setDateFormat("%d-%M-%Y");
mCal.attachEvent("onClick",function(date){
document.getElementById(formField).focus();
});
return true;
}
Instead of opening the calendar for picking the date on single click it opens in double click and focus event also not works but it open on single click in mozilla firefox and chrome.
PLease provide the solution.