Post

jQuery 비슷한 ID 찾기

jQuery 비슷한 ID 찾기

1. 비슷한 ID 찾기

1) id가 testId로 시작하는 엘리먼트들 찾기

1
$("[id^='testId']")

2) id가 testId로 끝나는 엘리먼트들 찾기

1
$("[id$='testId']")

[출처 및 참고]

This post is licensed under CC BY 4.0 by the author.