# 기본 필터 선택자

## 기본 필터 선택자&#x20;

![](/files/-MJUQw41eKhgpyKgbyIP)

```javascript
$("li:eq(4)").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f", color: "#fff"}); //순서(0부터 시작하여 0-1-2-3-4-⑤)
$("li:gt(4)").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f", color: "#fff"}); //선택된 것 이하 (자식 모두 해당)
$("li:lt(4)").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f", color: "#fff"}); //선택된 것 이상
$(":header").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f", color: "#fff"}); //제목
$("li:first").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f", color: "#fff"}); //첫번째
$("li:last").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f", color: "#fff"}); //마지막
$("li:odd").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f", color: "#fff"}); //짝수
$("li:even").css({backgroundColor:"#bbdefb", border:"1px dashed #303f9f", color: "#fff"}); //홀수
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dnjsdl678.gitbook.io/jquery/undefined-1/undefined-4.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
