---
title: "jquery得到checkbox选中的个数"
author: "xiajava2011"
date: "2011-06-29T09:51:38Z"
tags: []
categories: ["Web前端"]
slug: "jquery-checkbox"
draft: false
lastmod: "2011-06-29T09:51:38Z"
id: 1108942
url: "https://xiajava2011.iteye.com/blog/1108942"
---

```
var count = $("input[name='box']:checked").length;

<input name='box'>
<input name='box'>
<input name='box'>
```