Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple toggle function with IE6

I'm facing a problem with IE6.

I took the toggle function from this website but when I apply it to my page I get the error (only in IE6):

Could not get the display property. Invalid argument.

I can get the display property, but the error is thrown when I want to set to the new value.

EDIT: I know that several developers have faced this problem. So if it can help: the table-row property is not managed by internet explorer 6!

In my case, even when I set the display property to '' I wasn't seeing anything but it was because I applied a class to my element that hide them on load, so the default display would be, hide and when you set the display property to '' IE set it to the default display.

like image 563
Valentin Jacquemin Avatar asked Feb 24 '26 17:02

Valentin Jacquemin


1 Answers

Are you trying to set the display-property to "table-row" by any change? That is not supported by IE6.

A tip is to set display to an empty string. It makes the browser use the default value for the element.

like image 97
mlarsen Avatar answered Feb 26 '26 08:02

mlarsen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!