Attribute starts with selector [name^="value"]

Attribute Starts With Selector [name^=”value”]

attributeStartsWith selector

Description: Selects elements that have the specified attribute with a value beginning exactly with a given string.

  • version added: 1.0jQuery( "[attribute^='value']" )

    attribute: An attribute name.

    value: An attribute value. Can be either a valid identifier or a quoted string.