Question: I need to know when any checkbox on the page is checked:

e.g.

```
<input type="checkbox">

```

I tried this in Jquery

```
$('input type=["checkbox"]').change(function(){
alert('changed');
});

```

But it didn't work, any ideas?

Answer: 
```
$('input:checkbox').change(function(){
    if($(this).is(':checked')){
        alert('Checked');
    }
});

```

[**Here is a demo**](http://jsfiddle.net/Shef/E6RS9/)
```
$("input:checkbox").change(function(){

alert($(this).val());

});

```

here is the fiddle <http://jsfiddle.net/SXph5/>

[**`jquery change`**](http://api.jquery.com/change/)