Using the parent selector in jQuery

We use parent to select the children of the selected elements.
We have 3 possible cases:

  • We select all the children of parent tr and apply red color to the content.
  • We select all the children of the id 'mySel' and we apply blue color to the content overwriting the previous case. As id is only valid for the first of the children.
  • We select all the children of the class 'setClass' and we apply orange color overwriting the previous cases.
Comments

PHP Captcha


Interesting Articles