jQuery [속성$=값] 선택기
예시
".org"로 끝나는 href 속성이 있는 모든 <a> 요소를 선택하십시오.
$("a[href$='.org']")
정의 및 사용
[attribute$=value] 선택기는 값이 특정 문자열로 끝나는 특정 속성을 가진 각 요소를 선택합니다.
통사론
$("[attribute$='value']")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the string the value should end with |