jquery的隐藏

HTML 代码:
<form>
<input type="text" name="email" />
<input type="hidden" name="id" />

</form>jQuery 代码:
$("input:hidden")

使用 is() 判断 配合hidden属性 .show() .hide()

var flag=$('input').is(':hidden') //判断是否隐藏
if(flag){
.....
}else{
.....
}

原文地址:https://www.cnblogs.com/dzjphp/p/6050504.html