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

jQuery :first selector introduction_jquery

WBOY
Release: 2016-05-16 17:26:01
Original
1046 people have browsed it

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
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template