How to Reset Custom Widget

Hello all,
I want to reset all the controls(combobox,textbox,datebox,sub custom widget in composite widget .. etc) in my composite widget when button click in the same widget.
any ideas helpfull.
Thanks in advance

It depends on what do you

It depends on what do you mean by "reset" and the structure of your widget.

For example, one of the following can match your needs:
1. Place <input type="reset"> on the form. It will reset all fields on the form.
2. Create button and in its onclick event restore values in the controls to its original state. Of course, you should save the original state first.

Sincerely,
Alex

Hello Alex, thank you for

Hello Alex,
thank you for your reply.
I want same as ( )form reset but my cusmote widget have so many fileds like dijit.form.numbertextbox,comboBox...another 2 sub widget inside,just want to to clear and reset value to default or sote values if ther using one.
i have to do reset using dojo 0.9.
is there any widget dijit.form.reset ?

Thanks in Advance

Do not know exactly whether

Do not know exactly whether such component exists, but suspect that it is not. Maybe you can just refresh the page and form will load its original values?

Sincerely,
Alex