# 속성 선택자

### 속성 선택자

![](https://2619844618-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MJPDnIWvkFeSYsFAt99%2F-MJULR-WswOMROLGOcx2%2F-MJULZOUoj6AkV_uiUg_%2Fimage.png?alt=media\&token=2a3aae75-78cb-4d46-a03d-a00db1c9781c)

```javascript
//속성 선택자
$("li a[href='https://www.naver.com/']").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});
$("li a[href^='https']").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f"});
$("li a[href$='net']").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color:"#fff"});
$("li a[href*='naver'").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color:"#fff"});
$("li a[href][class]").css({backgroundColor:"#f44336", border:"1px dashed #303f9f", color:"#fff"});

```
