# 02.表单筛选器
[toc]{type: "ol", level: [3,4]}
### html结构
```html
<form>
<p>
username:
<label><input type="text"></label>
password:
<label><input type="password"></label>
</p>
<label>
<input type="button">
<input type="checkbox" value="12" checked>篮球
<input type="checkbox" value="24">足球
<select name="" id="">
<option value="" selected>男</option>
<option value="">女</option>
</select>
</label>
</form>
```
### 根据类型筛选
> 根据表单接收数据类型进行选择
```js
$(':text');
$(':password');
```
### 筛选默认选项
> 筛选出默认选项
```js
$(':selected');
// checked会选出selected及checked
$(':checked');
```