YouTip LogoYouTip

Sel Attribute Contains String Value

jQuery [attribute*=value] Selector |

- Learning Not Just Skills, But Dreams!

jQuery Tutorial

jQuery Tutorial jQuery Introduction jQuery Installation jQuery Syntax jQuery Selectors jQuery Events

jQuery Effects

jQuery Hide/Show jQuery Fading jQuery Sliding jQuery Animation jQuery Stop Animation jQuery Callback jQuery Chaining

jQuery HTML

jQuery Get jQuery Set jQuery Add Elements jQuery Remove Elements jQuery CSS Classes jQuery css() Method jQuery Dimensions

jQuery Traversing

jQuery Traversing jQuery Ancestors jQuery Descendants jQuery Siblings jQuery Filtering

jQuery Ajax

jQuery AJAX Introduction jQuery load() Method jQuery get()/post() Methods

jQuery Misc

jQuery noConflict() Method jQuery JSONP

jQuery Examples

jQuery Examples

jQuery Reference

jQuery Selectors jQuery Event Methods jQuery Effect Methods jQuery HTML / CSS Methods jQuery Traversing Methods jQuery AJAX Methods jQuery Misc Methods jQuery Properties

jQuery Plugins

jQuery Validate jQuery Cookie jQuery Accordion jQuery Autocomplete jQuery Growl jQuery Password Validation jQuery Prettydate jQuery Tooltip jQuery Treeview

jQuery Examples

jQuery Event Methods

Deep Dive

  • Computer Science
  • Programming Languages
  • Development Tools
  • Scripts
  • Web Design & Development
  • Scripting Languages
  • Programming
  • Software
  • Web Service
  • Network Services

jQuery [attribute*=value] Selector

jQuery Selectors jQuery Selectors

Example

Select all <input> elements with a name attribute value containing the string "nation":

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

Try it yourself Β»


Definition and Usage

The [attribute*=value] selector selects each element with a specified attribute whose value contains a specified string.


Syntax

$("[attribute*='value']")
Parameter Description
attribute Required. Specifies the attribute to search for.
value Required. Specifies the string the attribute value must contain.

jQuery Selectors jQuery Selectors

← Appml DownloadC Function Raise β†’