nerdexam
Microsoft

70-515 · Question #187

jQuery CheckBoxes In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes

The correct answer is A. var n = $("input:checked").length. See the full explanation below for the reasoning.

Question

jQuery CheckBoxes In a web page with chechboxes you need to write e jquery that retruns the number checked checkboxes

Options

  • Avar n = $("input:checked").length;
  • Bvar n = $(":input, :checked").length;
  • Cvar n = $("input:selected").length;
  • Dvar n = $(":input, :selected").length;

How the community answered

(25 responses)
  • A
    80% (20)
  • B
    4% (1)
  • C
    8% (2)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full 70-515 Practice