topical media & game development
lib-jquery-learning-code-11-dom-traversal-dom-traversal.js / js
// Step 1
// document.ready(function() {
// $('.target').grandparent().addClass('highlight');
// });
// Step 2
// document.ready(function() {
// var
// target.grandparent().addClass('highlight');
//
// });
// Step 3
document.ready(function() {
$('.target').grandparent().andSelf().addClass('highlight');
});
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.