DHTMLX Docs & Samples Explorer

Init Calendar from object

You can init calendar from object.

Click in a text fild

Source
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxcalendar.css">
<script>
window.dhx_globalImgPath = "../../codebase/imgs/";
</script> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxcalendar.js"></script> <script>
var mCal;
 
window.onload = function() {
    var dhxCalendarData = {
        parent: 'calInput1',
        isAutoDraw: false
    };
    mCal = new dhtmlxCalendarObject(dhxCalendarData);
}
</script> <table > <tr> <td valign="top"><strong>Click in a text fild</strong><br /> <input type="text" id="calInput1" style="width: 200px; font-size:12px;" readonly="true"> </td> </tr> </table> </table> <br>