Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How jquery hides textarea

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)05/31 Report--

Today Xiaobian to share with you how jquery hides textarea related knowledge points, detailed content, clear logic, I believe most people still know too much about this knowledge, so share this article for everyone to refer to, I hope you read this article after harvest, let's learn about it together.

Methods: 1. hide(), syntax "$("textarea").hide()";2. slideUp(), syntax "$("textarea").slideUp()";3. fadeOut(), syntax "$("textarea").fadeOut()".

This tutorial operates on Windows 7, jquery version 1.10.2, Dell G3 computers.

Tag defines a multiline text input control.

An unlimited amount of text can be accommodated in a text area, where the default font for the text is a monospaced font (usually Courier).

jquery method of hiding textarea

Method 1: Use hide()

The hide() method hides the selected element. Hidden elements are not fully displayed (no longer affecting the layout of the page).

The effect of this method is similar to the CSS property display:none.

Examples:

$(function() { $("button").click(function() { $("textarea").hide(); }) }) I am a text box.

hide textarea

Method 2: Use slideUp()

SlideUp() hides the selected element in a sliding fashion. Hidden elements are not fully displayed (no longer affecting the layout of the page).

Examples:

$(function() { $("button").click(function() { $("textarea").slideUp(); }) }) I am a text box.

hide textarea

Method 3: Use fadeOut()

The fadeOut() method gradually changes the opacity of the selected element from visible to hidden (fade effect).

Examples:

$(function() { $("button").click(function() { $("textarea").fadeOut(); }) }) I am a text box.

hide textarea

That's all for "jquery how to hide textarea", thanks for reading! I believe everyone has a great harvest after reading this article. Xiaobian will update different knowledge for everyone every day. If you want to learn more knowledge, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report