Home >Web Front-end >Front-end Q&A >How to hide a label in jquery

How to hide a label in jquery

藏色散人
藏色散人Original
2021-11-11 09:57:003220browse

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");   //占位隐藏

Appear:

The corresponding

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

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!

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