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

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести