ehsan ahmadi ehsan ahmadi - 6 months ago 9
Javascript Question

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

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

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

Answer

Use Can Use This Code

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

Comments