Jump to content

check whether style.display=="none"


robert_gsfame

Recommended Posts

I try to use .style.display to check whether the style.display is none, but it didnt work

how can i check the style display

 

if(document.getElementById("a").style.display=="none){

alert("none")}

 

 

 

It should work.  Show where your JavaScript is in relation to your HTML.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.