// Sample Solution to script.js
$('document').ready(function() {
//setting up the page (from provided.js)
addDivs();
$allTheDivs = $('div');
//select the third div
$thirdDiv = $allTheDivs.eq(2);
//use .not() to get all of the divs except the third one
$allButTheThird = $allTheDivs.not($thirdDiv);
$allButTheThird.addClass('selected');
});
No comments:
Post a Comment