DHTMLX Docs & Samples Explorer

attachObj(input)

Attaches calendar to input field.

Parameters:

  • input - HTML <input> element;

    <input type="text" id="input1">
    <input type="text" id="input2">
    <script>
       myCalendar = new dhtmlXCalendarObject("input1");
       ...
       myCalendar.attachObj("input2");
    })
    </script>

Description:

  • one and the same calendar can be attached to several inputs.

See also: