PrepAway - Latest Free Exam Questions & Answers

you need to write e jquery that retruns the number checked checkboxes

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

PrepAway - Latest Free Exam Questions & Answers

A.
var n = $(“input:checked”).length;

B.
var n = $(“:input, :checked”).length;

C.
var n = $(“input:selected”).length;

D.
var n = $(“:input, :selected”).length;

Explanation:
n = $(“input:checked”).length;
http://api.jquery.com/checked-selector/


Leave a Reply