使用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.