The jQuery Attribute Starts With Selector [name^="value"]
is used to select element that have the specific attribute
2. do have the specific attribute
beginning exactly with the given value
.It is case sensitive.
[name^="value"]
selector Syntax$('[attribute^="value"]')
[name^="value"]
selector ExamplesFollowing is a simple example which makes use of jQuery Attribute Begin With Selector.
It would find all list item elements with a title that starts with script
and hightlight them.
Try now