Categories | Question details Back To List | ||||||||
Changing date to empty with Calendar attached to an input (2) Hi, I have the same problem than the previous "Changing date to empty with Calendar attached to an input" but the response given is not enough. how can i empty a field in read-only connected to a dhtmlxCalendar ? Sure there is a solution by putting a button outside calendar wich will empty the field, but this is not visually satisfactory. If you have a better solution, thanks a lot !! function doOnLoad(){ var Cal = new dhtmlxCalendarObject('datefin'); } <input type="text" name="consultant.datefinString" maxlength="30" size="30" value="14/04/2009" readonly="readonly" id="datefin" class="scapinFORMtext"> PS : I use struts and struts-layout, so the html is generated. Answer posted by Alex (support) on Apr 24, 2009 07:13 Hello, The code, that clears the input value, can be called from any javascript function. The calendar doesn't provide any special methods to clear input.
Answer posted by Alex (support) on Apr 25, 2009 06:01 Hello, Sorry for the misleading information. There is the "clear" button in calender. We have attached the sample (the sample uses the latest version of dhtmlxcalendar.js please use it instead of the original one). Attachments (1)
Answer posted by fred on Apr 25, 2009 09:12 it's clearly a better solution !!!! thanks |