![]() |
access css thorugh javascript
Hi
To access this: [/code]#bla { display: none; }[/code] I just do: document.getElementById('bla').style.display = But How do I access something ilke this: Code:
#.treeview #bla ul li |
I've found that Javascript cannot override items found in CSS files. To do that you'll have to set the
display: none in the style attribute of the element. That way Javascript will be able to override it. |
ok thanks.
|
#. isn't valid, is it? :s
Code:
var o = document.getElementById('bla'); |
| All times are GMT. The time now is 11:40 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0