All pastes #651820 Raw Edit

Miscellany

public html v1 · immutable
#651820 ·published 2007-08-10 01:28 UTC
rendered paste body
<table> 	<tr> 		<td id='first'> <input id = 'myInput' type = 'text'> </td> 		<td id='second'> <input type = 'text'> </td> 	</tr> </table>myobj=document.getElementById("myInput");I want to traverse from myobj to the 2nd inputsoSecondInput = myobj.parentNode.nextSibling.firstChild;The order is UP from <input> to <td id='first'> then traverse <td id='second'> then firstchild should be <input>