Phil Hudson
Phil Hudson

Reputation: 3901

Hidden field value displayed in IE

Why is this field being displayed in IE?

I've look but could not find another case of this.

I am using the hidden attribute and it is still showing up...

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

Upvotes: 4

Views: 12677

Answers (4)

Anton_Loginov
Anton_Loginov

Reputation: 1

You can use this:

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

CSS:

[hidden] {
   display: none;
}

Upvotes: 0

loyola
loyola

Reputation: 4062

there is another choice and you can use this.

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

but also you can try,

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

Upvotes: 0

Daniel Attfield
Daniel Attfield

Reputation: 2072

I'd try replacing hidden="yes" with type="hidden".

Upvotes: 11

arnoldrob
arnoldrob

Reputation: 833

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

Try in this way

Upvotes: 2

Related Questions