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.
精彩评论