jQuery [attribute^=value] 选择器

jQuery 教程 · 2019-03-10 16:13:24

实例

选取所有带有以 "nation" 开头的 name 属性的 <input> 元素:

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

定义和用法

[attribute^=value] 选择器选取每个带有指定属性且以指定字符串开头的元素。

语法

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

参数 描述
attribute 必需。规定要查找的属性。
value 必需。规定属性值以其开头的字符串。

点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html

查看所有标签

Algorithms on Strings, Trees and Sequences

Algorithms on Strings, Trees and Sequences

Dan Gusfield / Cambridge University Press / 1997-5-28 / USD 99.99

String algorithms are a traditional area of study in computer science. In recent years their importance has grown dramatically with the huge increase of electronically stored text and of molecular seq......一起来看看 《Algorithms on Strings, Trees and Sequences》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换