简体   繁体   中英

Using jQuery, how to select all elements where element id ends with some string?

使用jQuery,如何选择id属性以某些字符串结尾的所有元素?

有一个attribute-ends-with选择器( [attr$=value] ,如下所示:

$("[id$=something]")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM