Consider following code snippet:

$("div.test").add("p.quote").addClass("blue").slideDown("slow");
Will the code run correctly?
Explanation
The code will run correctly:

    $("div.test").          // select all div element that has class test
            add("p.quote")  // select all p element that has class quote
            .addClass("blue")// add class blue for all selected elements
            .slideDown("slow"); //slideDown all selected elements

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes