Jump to content

[SOLVED] next element


mentalist

Recommended Posts

if i have the following code:

<div><a href='#' onclick="return innerdiv(event);">Open</a>
   <div>Some text</div>
</div>

i can use the event to find the parent div and the href element, but i can't seem to get the next inner div.

any idea how?

ive tried firstChild, childNodes[], lastChild and others.

Link to comment
https://forums.phpfreaks.com/topic/151338-solved-next-element/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.