I have a tree menu built from [url]http://www.mycssmenu.com/
It looks like
[code=html]<ul id=”qm0″ class=”qmmc”>
<li><a class=”qmparent” href=”javascript:void(0)”>Who We Are</a>
<ul>
<li><a href=”javascript:void(0)”>Management</a></li>
<li><a class=”qmparent” href=”javascript:void(0)”>Global Sites</a>
<ul>
<li><a href=”javascript:void(0)”>Asia</a></li>
<li><a href=”javascript:void(0)”>South America</a></li>
<li><a href=”javascript:void(0)”>Australia</a></li>
<li><a href=”javascript:void(0)”>North America</a></li>
<li><a href=”javascript:void(0)”>Europe</a></li>
<li><a href=”javascript:void(0)”>Africa</a></li>
</ul></li>
……….
……….
When the user opens the page items are all collapsed.
If he comes from another page with a query string, let’s say main=WWA&second=GMG
I want to automatically expand (I would add id=”WWA”) secondary items.
[code=html]<li id=”WWA”><a class=”qmparent” href=”javascript:void(0)”>Who We Are</a>
and also (I would add id=”WWA”) third items.
[code=html]<li id=”GMG”><a class=”qmparent” href=”javascript:void(0)”>Global Sites</a>…
I was triyng onload=click() but it only works with buttons radio and checkboxes within a form.
Do you know a way to perform this?
Thank you.