Reset button in Yii

HI,

I tried to set a reset button in one of my forms to clear the values in the fields.yes its work in the typed fields.but there is a 2 calenders that i put to get date range.In those two fields values were cleared by reset button but still the dates are hide that i firstly select.

can some one pls suggest some thing to clear the fields correctly… ::)

Could you please describe your problem a bit more so that we can help?

There are no native calendar in HTML (though there are date fields, and the Opera browser displays calendar for them). Are your calendars made with CJuiDatePicker?

Is your reset button an HTML one (button type=“reset”)? An HTML reset button won’t empty the fields, it will bring back the values they had when the page loaded. So you might need to use a Javascript button with some custom JS code.