Home > Web Front-end > JS Tutorial > jQuery implements long text part display code_jquery

jQuery implements long text part display code_jquery

WBOY
Release: 2016-05-16 17:33:59
Original
1340 people have browsed it

There is only a small area on the web page, but the explanatory text is very long. The following script implements partial display of the long text.
When the user clicks to expand, the text expands, and when closed, the text closes.

Originally I could write it using jQuery’s built-in toggle(), but toggle never worked when I did it, so I used the click flag to do it

Copy code The code is as follows:







< title>test





This is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph Text, this is a long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, This is a long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is It’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph A paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph Text, this is a long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, This is a long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is It’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph A paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph Text, this is a long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, This is a long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is It’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph A paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph Text, this is a long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, This is a long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is a very long paragraph, this is It’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph, it’s a long paragraph A paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text, this is a very long paragraph Text, this is a long paragraph of text, this is a very long paragraph of text, this is a very long paragraph of text

Expand



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