Consider following code snippet:

Will the code run correctly?
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
Sign Up Now
or Subscribe for future quizzes