# 내용 필터 선택자

### 내용 필터 선택자

![](https://2619844618-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJPDnIWvkFeSYsFAt99%2F-MJUT3ZzADChfVq_AkKD%2F-MJUT6IARWFo0bjUiyXi%2Fimage.png?alt=media\&token=c1edcc33-b367-4a26-8fee-6ecc2ddef550)

```javascript
//내용 필터 선택자
$("li:contains('list4')").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});
$("li a:empty").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});
$("li:parent").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});
$("li:has(li)").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});
```
