开发者

Clear input values

Dat开发者_高级运维a comes from a Servlet to HTML input field in a JSP page. When I press <input type="reset">, the data is not cleared. How can I solve this?


HTML reset buttons do not clear the fields in the form; they reset the fields back to their initial values (see example).

If you want to actually clear the data, you'll need to write a specific server-side controller to do that, or use javascript.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜