Sel Input Checkbox
## jQuery :checkbox Selector
The `:checkbox` selector is a built-in jQuery selector used to target and select all `` elements that have their `type` attribute set to `"checkbox"`.
---
## Definition and Usage
In HTML, checkboxes are defined using ``. The jQuery `:checkbox` selector provides a shorthand way to select these elements so you can easily manipulate them, bind event handlers, or retrieve their states (checked/unchecked).
### Syntax
```javascript
$(":checkbox")
```
---
## Code Examples
### Example 1: Basic Usage
The following example demonstrates how to select all checkbox elements on a page and apply a CSS style (such as adding a red border or wrapping them) or changing their properties when a button is clicked.
```html
jQuery :checkbox Selector Example
YouTip