Question

The responsive navigation on my site uses the aria-hidden="false" attribute. Is there a way I can set it to "true" purely through CSS? If not is there a line of code I can add so it can be set to false for IE7 and IE8 users?

Was it helpful?

Solution

Do you use jQuery? if so you can do something like :

if(/MSIE [78]/.test(navigator.userAgent)) {
    $('* [aria-hidden="false"]').attr('aria-hidden', 'true');
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top