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. Quote 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... Quote Link to comment https://forums.phpfreaks.com/topic/151338-solved-next-element/#findComment-794879 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.