JSP reset button clears the input form data instance, jsp form
Refer:
Jquery form clearing
$ (': Input',' # myform '). not (': button,: submit,: reset,: Den den '). val (''). removeAttr ('checked '). removeAttr ('selected ');
This js can empty the values entered and passed in the form, but note the following:
1. jq implementation. This <input/> cannot be placed in the form !;
2. Write it directly in the onclick attribute.
How can I clear all the data in the flex form by using the reset button ??
Try this: define a VO, and then set Vo
The attributes in are bound to the form element. If you clear them, you only need to set Vo = new Vo ();
How does JSP clear the previously output content and reset it,
Will the content of the first output be retained when the second output is made, or the content of the first output is cleared, and then the content of the second output is displayed ...? If you remove the content for the first time and display the content for the second time, it is easy to use the EL expression. If the first content is still displayed when the second content is displayed, it depends on how your data is stored... it is nothing more than the problem of getting data and storing data. As long as there is a data source, access should not be hard to achieve.