jQuery [속성*=값] 선택기

❮ jQuery 선택기

예시

"nation"이라는 단어가 포함된 name 속성이 있는 모든 <input> 요소를 선택합니다.

$("input[name*='nation']")

정의 및 사용

[attribute*=value] 선택기는 문자열을 포함하는 값과 함께 특정 속성을 가진 각 요소를 선택합니다.


통사론

$("[attribute*='value']")

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

❮ jQuery 선택기