Attribute Selector in jQuery

Selects elements that contain the attribute or an attribute with a specific value, such as:

javascript$("input[type='text']");

The attribute selector also looks for elements that start with a certain value, for example:

javascript$("a[href^='http://']");

And elements ending with a certain value:

javascript$("a[href$='.ru']");

In addition, this selector can be used to select elements that contain a specific value anywhere, for example:

javascript$("a[target*='blank']");