[thelist] Q on dHTML sibling/child

jsWalter jsWalter at torres.ws
Fri Mar 12 23:40:54 CST 2004


I have this block...

  <.li>
    <.span onclick="do_menu(this)" id='zz'>
      <.a href="#" Xtarget="display">About</a>
    </span>
    <.ul class="level_two">
      <.li class="active">
        <.a href="../index.html" target="display">Board Members</a>
      </li>
	<.li>
        <.a href="../index.html" target="display">NYSBA Staff</a>
      </li>
      <.li><a href="../index.html" target="display">Members</a>
      </li>
    </ul>
  </li>

I want to display the <.ul class="level_two"> block when its sibling SPAN is
clicked.

For some reason, I can't seem to remember how to retrieve an object
reference to a sibling of a given HTML element.

Can someone show me the bloody obvious?

Thanks

Walter



More information about the thelist mailing list