Jquery_review filtering the contents of a table that has been loaded onto a page

Source: Internet
Author: User

The background of the data through the response, after parsing the HTML, passed to the foreground to display, the data may be very much. So it's very necessary to have a two-time search on the current page, and it's extremely easy to find a function for jquery. There are just a few small points of knowledge that you need to focus on. The first one, what events do you use? Of course, we can add a retrieve button after the input search box. But then the user will have to click the button more than a few times. In the case of server interaction, this approach can greatly reduce the pressure on the server, but on the current page, only through input search, because the operation is done on the user's browser, so you can use the KeyUp event, similar to Google's search hints, To achieve a better user experience effect.

Second, the only thing to remember is to handle the empty row, and if the current user has emptied all of the content, then the empty line will be processed to ensure that the current functionality is correct. The third, when using KeyUp, should be triggered manually once to prevent unexpected results (DOM parsing problems).


<%@ page language= "java" import= "java.util.*" pageencoding= "Utf-8"%><! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >

Jquery_review filtering the contents of a table that has been loaded onto a page

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.