Black Horse DAY16 jquery& Basic Filter

Source: Internet
Author: User

1,: First Usage : $ ("Tr:first"); Returns a collection of values that comprise a single element

Description: Match the first element found

2.: Last
Usage : $ ("Tr:last") return value collection element

Description: Matches the last element found. Corresponds to: first.

3,: Not (selector)
Usage : $ ("Input:not (: Checked)") returns the value of the collection element

Description: Removes all elements that match the given selector. A bit similar to "non", meaning that there is no selected input (when input type= "checkbox").

4,: Even
Usage : $ ("Tr:even") return value collection element

Description: Matches all elements whose index value is even, counting from 0. js arrays are counted starting from 0. For example, to select a row in a table because it is counted from 0, the first TR in the table is even 0.

5,: Odd
Usage : $ ("tr:odd") return value collection element

Description: Match all index values to an odd number of elements, and: even corresponds, counting starting from 0.

6,: eq (index)
usage: $ ("tr:eq (0)")return value Collection element

Description: An element that matches a given index value. EQ (0) is the first TR element to get. Inside the parentheses are the index values, not the number of element permutations.

7,: GT (Index)
usage: $ ("tr:gt (0)")return value Collection elementDescription: Matches all elements that are greater than the given index value.8,: LT (index)
usage: $ ("Tr:lt (2)")return value Collection element

Description: Matches all elements that are less than the given index value.

9,: Header (fixed notation)
usage: $ (":Header"). CSS (" Background "," #EEE ")return value Collection element

Description: Matches a CAPTION element such as H1, H2, H3. This is a TITLE element that is specifically used to get h1,h2.

Ten,:animated(fixed notation)  return value Collection element

Description: Matches all elements that are performing an animation effect

<! DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" >

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Black Horse DAY16 jquery& Basic Filter

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.