Jump to content

what 's the meaning of this paragraf


runeveryday

Recommended Posts

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

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..

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.