Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which is the code that asks for the set of all div elements in a document?

  2. A.

     var divs = $(div);

    B.

     var divs = jQuery("div");

    C.

     var divs = $("div");

    D.

     var divs = #("div");

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    The code to ask for the set of all div elements in a document is
    var divs = $("div");


Be The First To Comment