2012-09-04 96 views
4

为什么在IE中显示该字段?IE中显示隐藏字段值

我看过,但找不到这种情况。

我使用的是隐藏属性,它是仍然显示...

<input hidden="yes" value="<?php echo $sssssssss; ?>" name="ssssssssasas"></input> 
+2

当然,你想要'型= “隐藏”' ,而不是'hidden =“yes”'? –

+0

啊道歉..今天看代码的许多小时已经使我无用。发布作为答案,我会接受:) –

+0

我们都去过;)很高兴帮助。 –

回答

11

尝试我会尝试用type="hidden"更换hidden="yes"

2
<input type="hidden" value="..." name="..."></input> 

这样

0

还有另一种选择,你可以使用它。

<div hidden> value </div> // this works in IE11 

但你也可以试试,

display:none; // set this for the variable you want to hide and you can access its value 
0

您可以使用此:

<div hidden="hidden"> value </div> // this works in IE7+ 

CSS:

[hidden] { 
    display: none; 
}