JSP reset button clears the input form data instance, jsp form

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.