How to hide a label in jquery

藏色散人
Release: 2021-11-11 09:57:00
Original
3100 people have browsed it

How to hide a label in jquery: 1. Use the "$.("#id").hide();" method to hide without occupying space; 2. Use "$.("#id") .css("visibility","hidden");" implement placeholder hiding.

How to hide a label in jquery

The operating environment of this article: windows7 system, jquery-2.1.4 version, DELL G3 computer

How to hide a label with jquery?

Use jQuery to hide tags:

Hide:

$.("#id").hide();   //不占位隐藏
$.("#id").css("visibility","hidden");   //占位隐藏
Copy after login

Appear:

The corresponding

$("#id").show();
$("#id").css("visibility","visible");
Copy after login

Recommended learning :《jquery video tutorial

The above is the detailed content of How to hide a label in jquery. For more information, please follow other related articles on the PHP Chinese website!

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!