mentalist Posted March 27, 2009 Share Posted March 27, 2009 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 More sharing options...
mentalist Posted March 27, 2009 Author Share Posted March 27, 2009 well, i gave myself an idea... e.parentNode.lastChild up, then down... Link to comment https://forums.phpfreaks.com/topic/151338-solved-next-element/#findComment-794879 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.