K
Kourosh
I have a lot of DIV tags on an HTML page. I want to group some of them
so that I can hide them all together at once if needed. What's a good
way to do this? I want this to be compatible with at least IE 5. Would
it be a good idea to assign all DIV tags in the same group the same
"title" attribute?
This is what I want to do, but I'm not sure if it's the correct
approach, and I'm not sure how to set the style with javascript either:
<div title="groupA">hello world</div>
<div title="groupB">from group b</div>
then with javascript set this style:
div[title='groupA']
{
display:none
}
If this is the right approach, and is compatible with say IE 5 or 6,
would someone tell me how to do it in javascript?
so that I can hide them all together at once if needed. What's a good
way to do this? I want this to be compatible with at least IE 5. Would
it be a good idea to assign all DIV tags in the same group the same
"title" attribute?
This is what I want to do, but I'm not sure if it's the correct
approach, and I'm not sure how to set the style with javascript either:
<div title="groupA">hello world</div>
<div title="groupB">from group b</div>
then with javascript set this style:
div[title='groupA']
{
display:none
}
If this is the right approach, and is compatible with say IE 5 or 6,
would someone tell me how to do it in javascript?