Skip to Content
0
Dec 17, 2013 at 12:13 PM

Date selected from DatePicker

29 Views

Hi

I have used a DatePicker (var oDatePicker1 = new sap.ui.commons.DatePicker('Date1', { change:function(){ }) in my webpage.

When a date is selected, I am displaying it on a label and which in turn is put on a DIV element. When I select the date for the first time, it is displayed correctly. But, when I select another date, Date is not getting over written instead it is getting appended.

I have tried to clear the div content using ( $("#DLabelContent").html(''); ) but the content is not cleared.

I am new to UI development. I will be thankful, if someone could suggest/guide to solve this problem

Regards

Giri