ehsan ahmadi ehsan ahmadi - 6 months ago 15
jQuery Question

How can i select all input that are selected in jquery?

How can i get all input that are checked in jQuery?

<div>
<input type="checkbox" checked="checked">sony </input>
<input type="checkbox">samsung </input>
<input type="checkbox"> Other</input>
</div>

Answer

Use Can Use This Code

$('input[type="checkbox"]:checked')