Cannot attach calendar to textarea

Hi,

Basically what the subject says.
I use instead of .
But then I can’t attach a calendar.
Is there a workaround for this ?

rg,rg

Replying to myself :unamused: :

Solved this by creating a div on the fly and attaching the calendar to it.

Attaching to input :

	var cal = new dhtmlXCalendarObject('id_input_element');

Attaching to textarea :

[code] var div = document.createElement(‘div’);
div.setAttribute(‘id’,‘id_div_element’);

var cal = new dhtmlXCalendarObject('id_div_element');
var tmp = cal.attachObj('id_of_textarea');
cal.show();                               // This shows the calendar below the textarea !

[/code]
This hopefully saves someone some time !

rg,rg

Yep sounds good! :slight_smile: