runeveryday Posted August 7, 2010 Share Posted August 7, 2010 Traversal also aids developers in affecting the elements immediately surrounding an element that is being manipulated or otherwise utilized by a script. This can range from adding a class to parent elements to indicate activity to disabling all inactive form elements to any number of other useful tasks. can't understand the above,the paragraf is from a book.anyone helps.thank you, Link to comment https://forums.phpfreaks.com/topic/210047-what-s-the-meaning-of-this-paragraf/ Share on other sites More sharing options...
RussellReal Posted August 8, 2010 Share Posted August 8, 2010 paragraph* more to your question.. a parent element is an element which contains another element <div> <span></span> </div> span's parent is div.. traversal is basically moving from element to element.. it basically says javascript makes it easy to traverse element to element even from a certain point.. E.G. getting <span>'s parent would be as simple as.. document.getElementsByTagName('span')[0].parentNode; so when you read that paragraph just think traversal as moving from one element to another.. or between, outward and inward.. Link to comment https://forums.phpfreaks.com/topic/210047-what-s-the-meaning-of-this-paragraf/#findComment-1096566 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.