Your code actually is working… just not in the way you think it should. At the moment, if you load the form, then click the button, it appears that nothing happens. However, try reloading the page, changing the value of the text element, and then clicking the reset button. Currently, your jquery code resets everything back to their default values. Since the text element has a default value of "defult", it will go back to that.
thank u falkencreative,
i solve that, it is not good idea that using <input type="reset"> for handling the clear function,
because when i press the reset browser try to change the value to "defult" and .val(”)doesn’t work,
changing type of input to BUTTON can solve this issue.