jQuery [속성^=값] 선택기

❮ jQuery 선택기

예시

"nation"으로 시작하는 이름 속성을 가진 모든 <input> 요소를 선택하십시오.

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

정의 및 사용

[attribute^=value] 선택기는 값이 특정 문자열에서 시작하는 특정 속성을 가진 각 요소를 선택합니다.


통사론

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

Parameter Description
attribute Required. Specifies the attribute to find
value Required. Specifies the string the value should begin with

❮ jQuery 선택기