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)- A80% (20)
- B4% (1)
- C8% (2)
- D8% (2)
Community Discussion
No community discussion yet for this question.