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.
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!