Home >Web Front-end >JS Tutorial >jQuery :first selector introduction_jquery

jQuery :first selector introduction_jquery

WBOY
WBOYOriginal
2016-05-16 17:26:011050browse

1. :first: Get the first element
2. Example
(1) Source code
first.html:

Copy code The code is as follows:




< ;meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
:first selector








  • Apple

  • < li>Pear
  • Orange

  • Watermelon

  • Lychee

  • Grapes

  • Banana

  • Melon



  1. apple

  2. pear

  3. orange

  4. < ;li>Watermelon
  5. Lychee

  6. Grape

  7. Banana

  8. Mulan






(2) The result is displayed as shown below
jQuery :first selector introduction_jquery
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn