jQuery [속성=값] 선택기

❮ jQuery 선택기

예시

값이 "선택"인 id 속성을 포함하는 모든 요소를 ​​선택하십시오.

$("[id=choose]")

정의 및 사용

[attribute=value] 선택기는 지정된 속성과 값을 가진 각 요소를 선택합니다.


통사론

$("[attribute=value]")

Parameter Description
attribute Required. Specifies the attribute to find
value Required. Specifies the value to find

❮ jQuery 선택기